mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Add missing prototypes for PyEval_CallFunction() and PyEval_CallMethod().
This commit is contained in:
parent
c4099e6b3c
commit
3d109a0e6d
1 changed files with 10 additions and 0 deletions
|
@ -44,6 +44,16 @@ PyObject *PyEval_CallObjectWithKeywords
|
|||
#define PyEval_CallObject(func,arg) \
|
||||
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
|
||||
|
||||
#ifdef HAVE_STDARG_PROTOTYPES
|
||||
PyObject *PyEval_CallFunction Py_PROTO((PyObject *obj, char *format, ...));
|
||||
PyObject *PyEval_CallMethod Py_PROTO((PyObject *obj,
|
||||
char *methodname, char *format, ...));
|
||||
#else
|
||||
/* Better to have no prototypes at all for varargs functions in this case */
|
||||
PyObject *PyEval_CallFunction();
|
||||
PyObject *PyEval_CallMethod();
|
||||
#endif
|
||||
|
||||
PyObject *PyEval_GetBuiltins Py_PROTO((void));
|
||||
PyObject *PyEval_GetGlobals Py_PROTO((void));
|
||||
PyObject *PyEval_GetLocals Py_PROTO((void));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue