summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
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/errors.c
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/errors.c')
-rw-r--r--Python/errors.c16
1 files changed, 0 insertions, 16 deletions
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;