summaryrefslogtreecommitdiffstats
path: root/Include/pymem.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-01 19:03:20 (GMT)
committerGitHub <noreply@github.com>2023-09-01 19:03:20 (GMT)
commit45b9e6a61f4cd61c08b2b02d257b52635ab37a25 (patch)
tree17bd561901193b09c5847404d51c765b7e8b9545 /Include/pymem.h
parent0e01fac315dfa705ac8a6954485546f28cf4c87d (diff)
downloadcpython-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/pymem.h')
-rw-r--r--Include/pymem.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/Include/pymem.h b/Include/pymem.h
index e882645..68e33f9 100644
--- a/Include/pymem.h
+++ b/Include/pymem.h
@@ -1,12 +1,8 @@
-/* The PyMem_ family: low-level memory allocation interfaces.
- See objimpl.h for the PyObject_ memory family.
-*/
+// The PyMem_ family: low-level memory allocation interfaces.
+// See objimpl.h for the PyObject_ memory family.
#ifndef Py_PYMEM_H
#define Py_PYMEM_H
-
-#include "pyport.h"
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -100,5 +96,4 @@ PyAPI_FUNC(void) PyMem_Free(void *ptr);
#ifdef __cplusplus
}
#endif
-
-#endif /* !Py_PYMEM_H */
+#endif // !Py_PYMEM_H