Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d109a0

Browse files
committed
Add missing prototypes for PyEval_CallFunction() and PyEval_CallMethod().
1 parent c4099e6 commit 3d109a0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Include/ceval.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ PyObject *PyEval_CallObjectWithKeywords
4444
#define PyEval_CallObject(func,arg) \
4545
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
4646

47+
#ifdef HAVE_STDARG_PROTOTYPES
48+
PyObject *PyEval_CallFunction Py_PROTO((PyObject *obj, char *format, ...));
49+
PyObject *PyEval_CallMethod Py_PROTO((PyObject *obj,
50+
char *methodname, char *format, ...));
51+
#else
52+
/* Better to have no prototypes at all for varargs functions in this case */
53+
PyObject *PyEval_CallFunction();
54+
PyObject *PyEval_CallMethod();
55+
#endif
56+
4757
PyObject *PyEval_GetBuiltins Py_PROTO((void));
4858
PyObject *PyEval_GetGlobals Py_PROTO((void));
4959
PyObject *PyEval_GetLocals Py_PROTO((void));

0 commit comments

Comments
 (0)