diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-01 19:03:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 19:03:20 (GMT) |
commit | 45b9e6a61f4cd61c08b2b02d257b52635ab37a25 (patch) | |
tree | 17bd561901193b09c5847404d51c765b7e8b9545 /Include/modsupport.h | |
parent | 0e01fac315dfa705ac8a6954485546f28cf4c87d (diff) | |
download | cpython-45b9e6a61f4cd61c08b2b02d257b52635ab37a25.zip cpython-45b9e6a61f4cd61c08b2b02d257b52635ab37a25.tar.gz cpython-45b9e6a61f4cd61c08b2b02d257b52635ab37a25.tar.bz2 |
gh-108765: Move standard includes to Python.h (#108769)
* Move <ctype.h>, <limits.h> and <stdarg.h> standard includes to
Python.h.
* Move "pystats.h" include from object.h to Python.h.
* Remove redundant "pymem.h" include in objimpl.h and "pyport.h"
include in pymem.h; Python.h already includes them earlier.
* Remove redundant <wchar.h> include in unicodeobject.h; Python.h
already includes it.
* Move _SGI_MP_SOURCE define from Python.h to pyport.h.
* pycore_condvar.h includes explicitly <unistd.h> for the
_POSIX_THREADS macro.
Diffstat (limited to 'Include/modsupport.h')
-rw-r--r-- | Include/modsupport.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h index 7c15ab5..6efe9dfa 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -1,3 +1,4 @@ +// Module support interface #ifndef Py_MODSUPPORT_H #define Py_MODSUPPORT_H @@ -5,10 +6,6 @@ extern "C" { #endif -/* Module support interface */ - -#include <stdarg.h> // va_list - PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...); PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...); PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *, |