summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-03-17 11:32:43 (GMT)
committerGitHub <noreply@github.com>2025-03-17 11:32:43 (GMT)
commit978e37bb5f979cccce36613637ac2d94b43c71b2 (patch)
tree52f7eb072bacae81a0ab7a20f8875f5c01861124 /Python/Python-ast.c
parent0453e494b6e23c876c1bb097966f2c68ec72fada (diff)
downloadcpython-978e37bb5f979cccce36613637ac2d94b43c71b2.zip
cpython-978e37bb5f979cccce36613637ac2d94b43c71b2.tar.gz
cpython-978e37bb5f979cccce36613637ac2d94b43c71b2.tar.bz2
gh-131238: Add explicit includes to pycore headers (#131257)
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 638e3f6..98dcdc4 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -3,15 +3,16 @@
#include "Python.h"
#include "pycore_ast.h"
#include "pycore_ast_state.h" // struct ast_state
-#include "pycore_ceval.h" // _Py_EnterRecursiveCall
+#include "pycore_ceval.h" // _Py_EnterRecursiveCall()
#include "pycore_lock.h" // _PyOnceFlag
-#include "pycore_interp.h" // _PyInterpreterState.ast
#include "pycore_modsupport.h" // _PyArg_NoPositional()
#include "pycore_pystate.h" // _PyInterpreterState_GET()
-#include "pycore_setobject.h" // _PySet_NextEntry(), _PySet_Update()
+#include "pycore_runtime.h" // _Py_ID()
+#include "pycore_setobject.h" // _PySet_NextEntry()
#include "pycore_unionobject.h" // _Py_union_type_or
-#include "structmember.h"
-#include <stddef.h>
+
+#include <stddef.h> // offsetof()
+
// Forward declaration
static int init_types(void *arg);