From 3d109a0e6dc4235cb27a343055dca3e90bbe65c1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 8 Aug 1998 20:53:36 +0000 Subject: [PATCH] Add missing prototypes for PyEval_CallFunction() and PyEval_CallMethod(). --- Include/ceval.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Include/ceval.h b/Include/ceval.h index 62977badca0..1805e36af38 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));