summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-05-27 11:30:45 (GMT)
committerGitHub <noreply@github.com>2022-05-27 11:30:45 (GMT)
commitcb04a09d2dfd197436a11de504b92773569e19fb (patch)
tree8aa6d8280d9dde5c2058ccd8461f81f207a1a090 /Python
parentddc4a782d3f32efbc03c69ddd59b6fa10911bcd9 (diff)
downloadcpython-cb04a09d2dfd197436a11de504b92773569e19fb.zip
cpython-cb04a09d2dfd197436a11de504b92773569e19fb.tar.gz
cpython-cb04a09d2dfd197436a11de504b92773569e19fb.tar.bz2
GH-93207: Remove HAVE_STDARG_PROTOTYPES configure check for stdarg.h (#93215)
Diffstat (limited to 'Python')
-rw-r--r--Python/_warnings.c16
-rw-r--r--Python/compile.c8
-rw-r--r--Python/errors.c16
-rw-r--r--Python/getargs.c8
-rw-r--r--Python/hamt.c4
-rw-r--r--Python/pylifecycle.c4
-rw-r--r--Python/sysmodule.c8
7 files changed, 0 insertions, 64 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 942308b..085ca45 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -1136,11 +1136,7 @@ PyErr_WarnFormat(PyObject *category, Py_ssize_t stack_level,
int res;
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
res = _PyErr_WarnFormatV(NULL, category, stack_level, format, vargs);
va_end(vargs);
return res;
@@ -1153,11 +1149,7 @@ _PyErr_WarnFormat(PyObject *source, PyObject *category, Py_ssize_t stack_level,
int res;
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
res = _PyErr_WarnFormatV(source, category, stack_level, format, vargs);
va_end(vargs);
return res;
@@ -1170,11 +1162,7 @@ PyErr_ResourceWarning(PyObject *source, Py_ssize_t stack_level,
int res;
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
res = _PyErr_WarnFormatV(source, PyExc_ResourceWarning,
stack_level, format, vargs);
va_end(vargs);
@@ -1274,11 +1262,7 @@ PyErr_WarnExplicitFormat(PyObject *category,
goto exit;
}
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
message = PyUnicode_FromFormatV(format, vargs);
if (message != NULL) {
PyObject *res;
diff --git a/Python/compile.c b/Python/compile.c
index d8f859e..541fa4c 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -6094,11 +6094,7 @@ static int
compiler_error(struct compiler *c, const char *format, ...)
{
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
PyObject *msg = PyUnicode_FromFormatV(format, vargs);
va_end(vargs);
if (msg == NULL) {
@@ -6131,11 +6127,7 @@ static int
compiler_warn(struct compiler *c, const char *format, ...)
{
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
PyObject *msg = PyUnicode_FromFormatV(format, vargs);
va_end(vargs);
if (msg == NULL) {
diff --git a/Python/errors.c b/Python/errors.c
index 3eb8a5e..b6b5d9b 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -688,11 +688,7 @@ _PyErr_FormatFromCauseTstate(PyThreadState *tstate, PyObject *exception,
const char *format, ...)
{
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
_PyErr_FormatVFromCause(tstate, exception, format, vargs);
va_end(vargs);
return NULL;
@@ -703,11 +699,7 @@ _PyErr_FormatFromCause(PyObject *exception, const char *format, ...)
{
PyThreadState *tstate = _PyThreadState_GET();
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
_PyErr_FormatVFromCause(tstate, exception, format, vargs);
va_end(vargs);
return NULL;
@@ -1096,11 +1088,7 @@ _PyErr_Format(PyThreadState *tstate, PyObject *exception,
const char *format, ...)
{
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
_PyErr_FormatV(tstate, exception, format, vargs);
va_end(vargs);
return NULL;
@@ -1112,11 +1100,7 @@ PyErr_Format(PyObject *exception, const char *format, ...)
{
PyThreadState *tstate = _PyThreadState_GET();
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
_PyErr_FormatV(tstate, exception, format, vargs);
va_end(vargs);
return NULL;
diff --git a/Python/getargs.c b/Python/getargs.c
index ed3ffda..fb4a512 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -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;
diff --git a/Python/hamt.c b/Python/hamt.c
index 908c253..3aa31c6 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -496,11 +496,7 @@ _hamt_dump_format(_PyUnicodeWriter *writer, const char *format, ...)
int ret;
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
msg = PyUnicode_FromFormatV(format, vargs);
va_end(vargs);
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 8644b5b..42a0581 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -2838,11 +2838,7 @@ _Py_FatalErrorFormat(const char *func, const char *format, ...)
}
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, format);
-#else
- va_start(vargs);
-#endif
vfprintf(stream, format, vargs);
va_end(vargs);
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 4f8b4cc..b9cae15 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -292,11 +292,7 @@ _PySys_Audit(PyThreadState *tstate, const char *event,
const char *argFormat, ...)
{
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, argFormat);
-#else
- va_start(vargs);
-#endif
int res = sys_audit_tstate(tstate, event, argFormat, vargs);
va_end(vargs);
return res;
@@ -307,11 +303,7 @@ PySys_Audit(const char *event, const char *argFormat, ...)
{
PyThreadState *tstate = _PyThreadState_GET();
va_list vargs;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(vargs, argFormat);
-#else
- va_start(vargs);
-#endif
int res = sys_audit_tstate(tstate, event, argFormat, vargs);
va_end(vargs);
return res;