Skip to content

Commit 1ac0d68

Browse files
Update Doc/c-api/pyexpat.rst
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 284f5f4 commit 1ac0d68

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎Doc/c-api/pyexpat.rst‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@ which must be included after Expat's :file:`expat.h` header.
1919
2020
The string identifying the layout of :c:struct:`PyExpat_CAPI`.
2121
Before using the function pointers in the structure, check that
22-
its ``magic`` member compares equal to this string using ``strcmp()``,
23-
its ``size`` member is at least :c:expr:`sizeof(struct PyExpat_CAPI)`, and its
24-
:c:member:`PyExpat_CAPI.MAJOR_VERSION`, :c:member:`PyExpat_CAPI.MINOR_VERSION`,
25-
and :c:member:`PyExpat_CAPI.MICRO_VERSION` members equal the
26-
``XML_MAJOR_VERSION``, ``XML_MINOR_VERSION``, and ``XML_MICRO_VERSION``
27-
macros, respectively, from the :file:`expat.h` header used to build the
28-
extension.
22+
its ``magic`` member compares equal to this string using ``strcmp()``
23+
and its ``size`` member is at least :c:expr:`sizeof(struct PyExpat_CAPI)`.
2924

3025

3126
.. c:struct:: PyExpat_CAPI

0 commit comments

Comments
 (0)