summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-03-17 22:11:03 (GMT)
committerGitHub <noreply@github.com>2021-03-17 22:11:03 (GMT)
commitb4536e1c6abe4c6219177a89e16575d05ea22f64 (patch)
treebade8c2412e0b83d00e737ce465214d2033cf5f3 /Parser/asdl_c.py
parente272528bbd5e0b081dbffa73b1a6908f3992d13c (diff)
downloadcpython-b4536e1c6abe4c6219177a89e16575d05ea22f64.zip
cpython-b4536e1c6abe4c6219177a89e16575d05ea22f64.tar.gz
cpython-b4536e1c6abe4c6219177a89e16575d05ea22f64.tar.bz2
bpo-43244: Rename pycore_ast.h to pycore_ast_state.h (GH-24907)
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-xParser/asdl_c.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 8c167bc..e96f1f3 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1429,7 +1429,7 @@ def generate_module_def(mod, f, internal_h):
print(textwrap.dedent(f"""
#ifdef Py_BUILD_CORE
- # include "pycore_ast.h" // struct ast_state
+ # include "pycore_ast_state.h" // struct ast_state
# include "pycore_interp.h" // _PyInterpreterState.ast
# include "pycore_pystate.h" // _PyInterpreterState_GET()
#else
@@ -1522,8 +1522,8 @@ def write_header(mod, f):
def write_internal_h_header(mod, f):
print(textwrap.dedent("""
- #ifndef Py_INTERNAL_AST_H
- #define Py_INTERNAL_AST_H
+ #ifndef Py_INTERNAL_AST_STATE_H
+ #define Py_INTERNAL_AST_STATE_H
#ifdef __cplusplus
extern "C" {
#endif
@@ -1540,7 +1540,7 @@ def write_internal_h_footer(mod, f):
#ifdef __cplusplus
}
#endif
- #endif /* !Py_INTERNAL_AST_H */
+ #endif /* !Py_INTERNAL_AST_STATE_H */
"""), file=f)