gh-93738: Documentation C syntax (Use c:struct) (#97772)

Use `c:struct`
This commit is contained in:
Adam Turner 2022-10-05 00:26:14 +01:00 committed by GitHub
parent fa59bda8d3
commit a0f5599aac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 15 deletions

View file

@ -243,7 +243,7 @@ Importing Modules
UTF-8 encoded string instead of a Unicode object.
.. c:type:: struct _frozen
.. c:struct:: _frozen
.. index:: single: freeze utility
@ -265,7 +265,7 @@ Importing Modules
.. c:var:: const struct _frozen* PyImport_FrozenModules
This pointer is initialized to point to an array of :c:type:`struct _frozen`
This pointer is initialized to point to an array of :c:struct:`_frozen`
records, terminated by one whose members are all ``NULL`` or zero. When a frozen
module is imported, it is searched in this table. Third-party code could play
tricks with this to provide a dynamically created collection of frozen modules.
@ -281,7 +281,7 @@ Importing Modules
:c:func:`Py_Initialize`.
.. c:type:: struct _inittab
.. c:struct:: _inittab
Structure describing a single entry in the list of built-in modules. Each of
these structures gives the name and initialization function for a module built

View file

@ -82,7 +82,7 @@ the same library that the Python runtime is using.
.. c:function:: int PyRun_SimpleString(const char *command)
This is a simplified interface to :c:func:`PyRun_SimpleStringFlags` below,
leaving the :c:type:`PyCompilerFlags`\* argument set to ``NULL``.
leaving the :c:struct:`PyCompilerFlags`\* argument set to ``NULL``.
.. c:function:: int PyRun_SimpleStringFlags(const char *command, PyCompilerFlags *flags)
@ -338,7 +338,7 @@ the same library that the Python runtime is using.
interpreter loop.
.. c:type:: struct PyCompilerFlags
.. c:struct:: PyCompilerFlags
This is the structure used to hold compiler flags. In cases where code is only
being compiled, it is passed as ``int flags``, and in cases where code is being