summaryrefslogtreecommitdiff
path: root/Include/internal/_Python.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2017-09-05 18:26:16 -0700
committerGitHub <noreply@github.com>2017-09-05 18:26:16 -0700
commit76d5abc8684bac4f2fc7cccfe2cd940923357351 (patch)
tree4ae6a3bd88bef1266a8d9723c589f925d90bf848 /Include/internal/_Python.h
parent501b324d3a940d26e0021a38aae8d896a30fbcff (diff)
downloadcpython-git-76d5abc8684bac4f2fc7cccfe2cd940923357351.tar.gz
bpo-30860: Consolidate stateful runtime globals. (#2594)
* group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py).
Diffstat (limited to 'Include/internal/_Python.h')
-rw-r--r--Include/internal/_Python.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Include/internal/_Python.h b/Include/internal/_Python.h
new file mode 100644
index 0000000000..c56e98f740
--- /dev/null
+++ b/Include/internal/_Python.h
@@ -0,0 +1,16 @@
+#ifndef _Py_PYTHON_H
+#define _Py_PYTHON_H
+/* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
+
+/* Include all internal Python header files */
+
+#ifndef Py_BUILD_CORE
+#error "Internal headers are not available externally."
+#endif
+
+#include "_mem.h"
+#include "_ceval.h"
+#include "_warnings.h"
+#include "_pystate.h"
+
+#endif /* !_Py_PYTHON_H */