diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-12-15 13:11:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 13:11:11 +0200 |
commit | a5552f023e1d8cbafee1e51d316cc581deb2295f (patch) | |
tree | f7cb07017f409fb035ec999efed8ddae18446865 /Python/clinic/import.c.h | |
parent | 3325a6780c81f1ea51190370b5454879c4862a37 (diff) | |
download | cpython-git-a5552f023e1d8cbafee1e51d316cc581deb2295f.tar.gz |
bpo-32240: Add the const qualifier to declarations of PyObject* array arguments. (#4746)
Diffstat (limited to 'Python/clinic/import.c.h')
-rw-r--r-- | Python/clinic/import.c.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/clinic/import.c.h b/Python/clinic/import.c.h index 1955e50455..27b83ecc00 100644 --- a/Python/clinic/import.c.h +++ b/Python/clinic/import.c.h @@ -82,7 +82,7 @@ _imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code, PyObject *path); static PyObject * -_imp__fix_co_filename(PyObject *module, PyObject **args, Py_ssize_t nargs) +_imp__fix_co_filename(PyObject *module, PyObject *const *args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyCodeObject *code; @@ -275,7 +275,7 @@ static PyObject * _imp_create_dynamic_impl(PyObject *module, PyObject *spec, PyObject *file); static PyObject * -_imp_create_dynamic(PyObject *module, PyObject **args, Py_ssize_t nargs) +_imp_create_dynamic(PyObject *module, PyObject *const *args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *spec; @@ -366,7 +366,7 @@ static PyObject * _imp_source_hash_impl(PyObject *module, long key, Py_buffer *source); static PyObject * -_imp_source_hash(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_imp_source_hash(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) { PyObject *return_value = NULL; static const char * const _keywords[] = {"key", "source", NULL}; @@ -396,4 +396,4 @@ exit: #ifndef _IMP_EXEC_DYNAMIC_METHODDEF #define _IMP_EXEC_DYNAMIC_METHODDEF #endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */ -/*[clinic end generated code: output=e8b2c0b0d0a75da8 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f0660cd1de6b3a73 input=a9049054013a1b77]*/ |