aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2025-03-17 09:19:04 +0000
committerGitHub <noreply@github.com>2025-03-17 09:19:04 +0000
commita1aeec61c4321ba9a6966109343bd88dcf9cb26a (patch)
treed2fa5ce55165df255559ec4a7b2fb1289e84f908 /Python/pystate.c
parent3ae67ba97e88d6f066a5b6f0c809f57fe4a1ecbe (diff)
downloadcpython-a1aeec61c4321ba9a6966109343bd88dcf9cb26a.tar.gz
cpython-a1aeec61c4321ba9a6966109343bd88dcf9cb26a.zip
GH-131238: Core header refactor (GH-131250)
* Moves most structs in pycore_ header files into pycore_structs.h and pycore_runtime_structs.h * Removes many cross-header dependencies
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index fcd12d1b933..99f8774d446 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -2,6 +2,8 @@
/* Thread and interpreter state structures and their interfaces */
#include "Python.h"
+#include "pycore_runtime_structs.h"
+
#include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_audit.h" // _Py_AuditHookEntry
#include "pycore_ceval.h"
@@ -18,6 +20,7 @@
#include "pycore_pylifecycle.h" // _PyAST_Fini()
#include "pycore_pymem.h" // _PyMem_DebugEnabled()
#include "pycore_pystate.h"
+#include "pycore_runtime.h" // _PyRuntime
#include "pycore_runtime_init.h" // _PyRuntimeState_INIT
#include "pycore_stackref.h" // Py_STACKREF_DEBUG
#include "pycore_time.h" // _PyTime_Init()