summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/import.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-30 07:01:03 (GMT)
committerGitHub <noreply@github.com>2017-03-30 07:01:03 (GMT)
commit84b8e92e463bd6a5174bd3e5a6543580f6319c57 (patch)
treed8aeb7d0360e2e538ccafb0ecd26ea52a58d7aff /Doc/c-api/import.rst
parent576def096ec7b64814e038f03290031f172886c3 (diff)
downloadcpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.zip
cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.gz
cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.bz2
bpo-29918: Add missed "const" modifiers in C API documentation. (#846)
Diffstat (limited to 'Doc/c-api/import.rst')
-rw-r--r--Doc/c-api/import.rst11
1 files changed, 3 insertions, 8 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst
index 5273633..7c16ece 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -231,11 +231,6 @@ Importing Modules
Finalize the import mechanism. For internal use only.
-.. c:function:: PyObject* _PyImport_FindExtension(char *, char *)
-
- For internal use only.
-
-
.. c:function:: int PyImport_ImportFrozenModuleObject(PyObject *name)
Load a frozen module named *name*. Return ``1`` for success, ``0`` if the
@@ -266,8 +261,8 @@ Importing Modules
is::
struct _frozen {
- char *name;
- unsigned char *code;
+ const char *name;
+ const unsigned char *code;
int size;
};
@@ -300,7 +295,7 @@ Importing Modules
The structure is defined in :file:`Include/import.h` as::
struct _inittab {
- char *name; /* ASCII encoded string */
+ const char *name; /* ASCII encoded string */
PyObject* (*initfunc)(void);
};