diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-10-04 23:26:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 23:26:14 (GMT) |
commit | a0f5599aac2037da715d09733e0a83a9cba7c37a (patch) | |
tree | cc5a1fc351eadd5f47bf1b52ee8ba9ff355f8f7f /Doc/c-api | |
parent | fa59bda8d30ea0b6c19007205b57c800c944304c (diff) | |
download | cpython-a0f5599aac2037da715d09733e0a83a9cba7c37a.zip cpython-a0f5599aac2037da715d09733e0a83a9cba7c37a.tar.gz cpython-a0f5599aac2037da715d09733e0a83a9cba7c37a.tar.bz2 |
gh-93738: Documentation C syntax (Use `c:struct`) (#97772)
Use `c:struct`
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/import.rst | 6 | ||||
-rw-r--r-- | Doc/c-api/veryhigh.rst | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst index 5e2333a..0922956 100644 --- a/Doc/c-api/import.rst +++ b/Doc/c-api/import.rst @@ -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 diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst index b17818e..e3752bd 100644 --- a/Doc/c-api/veryhigh.rst +++ b/Doc/c-api/veryhigh.rst @@ -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 |