mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
ANSIfications: fix empty arglists, and remove the checks for
'HAVE_STDARG_PROTOTYPES' (consider it true, remove false branch)
This commit is contained in:
parent
7889010731
commit
5f37591a16
6 changed files with 3 additions and 34 deletions
|
@ -27,15 +27,9 @@ DL_IMPORT(PyObject *) PyEval_CallObject(PyObject *, PyObject *);
|
|||
#define PyEval_CallObject(func,arg) \
|
||||
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
|
||||
|
||||
#ifdef HAVE_STDARG_PROTOTYPES
|
||||
DL_IMPORT(PyObject *) PyEval_CallFunction(PyObject *obj, char *format, ...);
|
||||
DL_IMPORT(PyObject *) PyEval_CallMethod(PyObject *obj,
|
||||
char *methodname, char *format, ...);
|
||||
#else
|
||||
/* Better to have no prototypes at all for varargs functions in this case */
|
||||
DL_IMPORT(PyObject *) PyEval_CallFunction();
|
||||
DL_IMPORT(PyObject *) PyEval_CallMethod();
|
||||
#endif
|
||||
|
||||
DL_IMPORT(PyObject *) PyEval_GetBuiltins(void);
|
||||
DL_IMPORT(PyObject *) PyEval_GetGlobals(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue