diff options
author | Guido van Rossum <guido@python.org> | 1998-08-08 20:53:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-08 20:53:36 (GMT) |
commit | 3d109a0e6dc4235cb27a343055dca3e90bbe65c1 (patch) | |
tree | 6b620e8dfa5ce777ca46a329a236e4b72b3d864c /Include | |
parent | c4099e6b3ceab5a33bff3d0b0ba432df2b3ebaec (diff) | |
download | cpython-3d109a0e6dc4235cb27a343055dca3e90bbe65c1.zip cpython-3d109a0e6dc4235cb27a343055dca3e90bbe65c1.tar.gz cpython-3d109a0e6dc4235cb27a343055dca3e90bbe65c1.tar.bz2 |
Add missing prototypes for PyEval_CallFunction() and PyEval_CallMethod().
Diffstat (limited to 'Include')
-rw-r--r-- | Include/ceval.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index 62977ba..1805e36 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -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)); |