summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-05-13 04:08:28 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-05-13 04:08:28 (GMT)
commitf6b687fcd4d62e53443e23376dc02c177fecc0d4 (patch)
treee9de3846d9babce511548b0ed3f19bf0d2fa3b99 /Include
parentfa6bdc6d8651e8240f2964ea628a188fb2d594c6 (diff)
downloadcpython-f6b687fcd4d62e53443e23376dc02c177fecc0d4.zip
cpython-f6b687fcd4d62e53443e23376dc02c177fecc0d4.tar.gz
cpython-f6b687fcd4d62e53443e23376dc02c177fecc0d4.tar.bz2
remove support GCC PyArg_ParseTuple format patch, last seen in 2006
Diffstat (limited to 'Include')
-rw-r--r--Include/modsupport.h2
-rw-r--r--Include/pyport.h9
2 files changed, 1 insertions, 10 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index ecf1dcc..ab725f6 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -26,7 +26,7 @@ PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
/* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */
#if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);
-PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
+PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...);
PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
const char *, char **, ...);
PyAPI_FUNC(int) PyArg_ValidateKeywordArguments(PyObject *);
diff --git a/Include/pyport.h b/Include/pyport.h
index 17d9f6d..96e8f1a 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -832,15 +832,6 @@ extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
#endif
/*
- * Add PyArg_ParseTuple format where available.
- */
-#ifdef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE
-#define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2)))
-#else
-#define Py_FORMAT_PARSETUPLE(func,p1,p2)
-#endif
-
-/*
* Specify alignment on compilers that support it.
*/
#if defined(__GNUC__) && __GNUC__ >= 3