mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
GH-93207: Remove HAVE_STDARG_PROTOTYPES configure check for stdarg.h (#93215)
This commit is contained in:
parent
ddc4a782d3
commit
cb04a09d2d
19 changed files with 9 additions and 171 deletions
|
@ -2792,11 +2792,7 @@ PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t m
|
|||
stack = _PyTuple_ITEMS(args);
|
||||
nargs = PyTuple_GET_SIZE(args);
|
||||
|
||||
#ifdef HAVE_STDARG_PROTOTYPES
|
||||
va_start(vargs, max);
|
||||
#else
|
||||
va_start(vargs);
|
||||
#endif
|
||||
retval = unpack_stack(stack, nargs, name, min, max, vargs);
|
||||
va_end(vargs);
|
||||
return retval;
|
||||
|
@ -2809,11 +2805,7 @@ _PyArg_UnpackStack(PyObject *const *args, Py_ssize_t nargs, const char *name,
|
|||
int retval;
|
||||
va_list vargs;
|
||||
|
||||
#ifdef HAVE_STDARG_PROTOTYPES
|
||||
va_start(vargs, max);
|
||||
#else
|
||||
va_start(vargs);
|
||||
#endif
|
||||
retval = unpack_stack(args, nargs, name, min, max, vargs);
|
||||
va_end(vargs);
|
||||
return retval;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue