summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-01-13 22:54:36 (GMT)
committerGitHub <noreply@github.com>2022-01-13 22:54:36 (GMT)
commitbc02eac9d2cb36faffc5027b7ce09e6dd0922a7f (patch)
treeebb4db98393a375ee76553e6d703a25cfbf1e1bf /Python
parent276c234ce0fa6732237f1b187989837324d9dea3 (diff)
downloadcpython-bc02eac9d2cb36faffc5027b7ce09e6dd0922a7f.zip
cpython-bc02eac9d2cb36faffc5027b7ce09e6dd0922a7f.tar.gz
cpython-bc02eac9d2cb36faffc5027b7ce09e6dd0922a7f.tar.bz2
bpo-46370: Move the static initializer for _PyRuntime to its own header file. (gh-30587)
https://bugs.python.org/issue46370
Diffstat (limited to 'Python')
-rw-r--r--Python/pylifecycle.c1
-rw-r--r--Python/pystate.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 284cfac..8bcad67 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -20,6 +20,7 @@
#include "pycore_pyerrors.h" // _PyErr_Occurred()
#include "pycore_pylifecycle.h" // _PyErr_Print()
#include "pycore_pystate.h" // _PyThreadState_GET()
+#include "pycore_runtime_init.h" // _PyRuntimeState_INIT
#include "pycore_sliceobject.h" // _PySlice_Fini()
#include "pycore_structseq.h" // _PyStructSequence_InitState()
#include "pycore_sysmodule.h" // _PySys_ClearAuditHooks()
diff --git a/Python/pystate.c b/Python/pystate.c
index a18a159..e617585 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -10,6 +10,7 @@
#include "pycore_pylifecycle.h"
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include "pycore_pystate.h" // _PyThreadState_GET()
+#include "pycore_runtime_init.h" // _PyRuntimeState_INIT
#include "pycore_sysmodule.h"
/* --------------------------------------------------------------------------