diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-02-23 00:02:00 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-02-23 00:02:00 (GMT) |
commit | 501c09a754bc329ed9b3d0c1be0c51ccd6687c6c (patch) | |
tree | a773bd0785e30313e390f41431ce8527d41c30b0 /Include/import.h | |
parent | d7e76405c7c1afe830faf40646b704be5c51ad51 (diff) | |
download | cpython-501c09a754bc329ed9b3d0c1be0c51ccd6687c6c.zip cpython-501c09a754bc329ed9b3d0c1be0c51ccd6687c6c.tar.gz cpython-501c09a754bc329ed9b3d0c1be0c51ccd6687c6c.tar.bz2 |
Issue #3080: Mark _PyImport_FindBuiltin() argument as constant
And as a consequence, mark also name argument of
_PyImport_FindExtensionUnicode() constant too. But I plan to change this
argument type to PyObject* later.
Diffstat (limited to 'Include/import.h')
-rw-r--r-- | Include/import.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/import.h b/Include/import.h index 400e97c..26e1f0f 100644 --- a/Include/import.h +++ b/Include/import.h @@ -65,9 +65,9 @@ PyAPI_FUNC(int) _PyImport_ReleaseLock(void); PyAPI_FUNC(void) _PyImport_ReInitLock(void); PyAPI_FUNC(PyObject *)_PyImport_FindBuiltin( - char *name /* UTF-8 encoded string */ + const char *name /* UTF-8 encoded string */ ); -PyAPI_FUNC(PyObject *)_PyImport_FindExtensionUnicode(char *, PyObject *); +PyAPI_FUNC(PyObject *)_PyImport_FindExtensionUnicode(const char *, PyObject *); PyAPI_FUNC(int)_PyImport_FixupBuiltin( PyObject *mod, char *name /* UTF-8 encoded string */ |