mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -16,8 +16,6 @@ extern "C" {
|
|||
|
||||
/* Module support interface */
|
||||
|
||||
#ifdef HAVE_STDARG_PROTOTYPES
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
extern DL_IMPORT(int) PyArg_Parse(PyObject *, char *, ...);
|
||||
|
@ -26,17 +24,6 @@ extern DL_IMPORT(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
|
|||
char *, char **, ...);
|
||||
extern DL_IMPORT(PyObject *) Py_BuildValue(char *, ...);
|
||||
|
||||
#else
|
||||
|
||||
#include <varargs.h>
|
||||
|
||||
/* Better to have no prototypes at all for varargs functions in this case */
|
||||
extern DL_IMPORT(int) PyArg_Parse();
|
||||
extern DL_IMPORT(int) PyArg_ParseTuple();
|
||||
extern DL_IMPORT(PyObject *) Py_BuildValue();
|
||||
|
||||
#endif
|
||||
|
||||
extern DL_IMPORT(int) PyArg_VaParse(PyObject *, char *, va_list);
|
||||
extern DL_IMPORT(PyObject *) Py_VaBuildValue(char *, va_list);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue