summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/import.rst
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-10-04 23:26:14 (GMT)
committerGitHub <noreply@github.com>2022-10-04 23:26:14 (GMT)
commita0f5599aac2037da715d09733e0a83a9cba7c37a (patch)
treecc5a1fc351eadd5f47bf1b52ee8ba9ff355f8f7f /Doc/c-api/import.rst
parentfa59bda8d30ea0b6c19007205b57c800c944304c (diff)
downloadcpython-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/import.rst')
-rw-r--r--Doc/c-api/import.rst6
1 files changed, 3 insertions, 3 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