bpo-32240: Add the const qualifier to declarations of PyObject* array arguments. (#4746)
diff --git a/Include/eval.h b/Include/eval.h
index 9541e10..2c1c2d0 100644
--- a/Include/eval.h
+++ b/Include/eval.h
@@ -12,19 +12,19 @@
PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyObject *co,
PyObject *globals,
PyObject *locals,
- PyObject **args, int argc,
- PyObject **kwds, int kwdc,
- PyObject **defs, int defc,
+ PyObject *const *args, int argc,
+ PyObject *const *kwds, int kwdc,
+ PyObject *const *defs, int defc,
PyObject *kwdefs, PyObject *closure);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PyEval_EvalCodeWithName(
PyObject *co,
PyObject *globals, PyObject *locals,
- PyObject **args, Py_ssize_t argcount,
- PyObject **kwnames, PyObject **kwargs,
+ PyObject *const *args, Py_ssize_t argcount,
+ PyObject *const *kwnames, PyObject *const *kwargs,
Py_ssize_t kwcount, int kwstep,
- PyObject **defs, Py_ssize_t defcount,
+ PyObject *const *defs, Py_ssize_t defcount,
PyObject *kwdefs, PyObject *closure,
PyObject *name, PyObject *qualname);