diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-22 23:59:33 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-22 23:59:33 (GMT) |
commit | a534594fc72cddd5c29ed8debbb3d2f16792db97 (patch) | |
tree | 666ab77fd65e2c8c1ff3613cdb57d754980bd588 /Objects/abstract.c | |
parent | bd4bc4e9e947617def66780efbbea4eb08990e56 (diff) | |
download | cpython-a534594fc72cddd5c29ed8debbb3d2f16792db97.zip cpython-a534594fc72cddd5c29ed8debbb3d2f16792db97.tar.gz cpython-a534594fc72cddd5c29ed8debbb3d2f16792db97.tar.bz2 |
ANSIfication: remove very-old-varargs code, fix function declarations so
they include prototypes.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 1d99019..96b5fe8 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -298,8 +298,6 @@ PyNumber_Check(PyObject *o) PyObject * PyNumber_Or(PyObject *v, PyObject *w) { - extern int PyNumber_Coerce(); - BINOP(v, w, "__or__", "__ror__", PyNumber_Or); if (v->ob_type->tp_as_number != NULL) { PyObject *x = NULL; @@ -319,8 +317,6 @@ PyNumber_Or(PyObject *v, PyObject *w) PyObject * PyNumber_Xor(PyObject *v, PyObject *w) { - extern int PyNumber_Coerce(); - BINOP(v, w, "__xor__", "__rxor__", PyNumber_Xor); if (v->ob_type->tp_as_number != NULL) { PyObject *x = NULL; @@ -1391,25 +1387,11 @@ PyObject_CallObject(PyObject *o, PyObject *a) } PyObject * -#ifdef HAVE_STDARG_PROTOTYPES -/* VARARGS 2 */ PyObject_CallFunction(PyObject *callable, char *format, ...) -#else -/* VARARGS */ - PyObject_CallFunction(va_alist) va_dcl -#endif { va_list va; PyObject *args, *retval; -#ifdef HAVE_STDARG_PROTOTYPES va_start(va, format); -#else - PyObject *callable; - char *format; - va_start(va); - callable = va_arg(va, PyObject *); - format = va_arg(va, char *); -#endif if (callable == NULL) { va_end(va); @@ -1444,27 +1426,11 @@ PyObject_CallFunction(PyObject *callable, char *format, ...) } PyObject * -#ifdef HAVE_STDARG_PROTOTYPES -/* VARARGS 2 */ PyObject_CallMethod(PyObject *o, char *name, char *format, ...) -#else -/* VARARGS */ - PyObject_CallMethod(va_alist) va_dcl -#endif { va_list va; PyObject *args, *func = 0, *retval; -#ifdef HAVE_STDARG_PROTOTYPES va_start(va, format); -#else - PyObject *o; - char *name; - char *format; - va_start(va); - o = va_arg(va, PyObject *); - name = va_arg(va, char *); - format = va_arg(va, char *); -#endif if (o == NULL || name == NULL) { va_end(va); |