diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-11-11 23:56:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-11 23:56:19 (GMT) |
commit | 5f2df88b63e50d23914e97ec778861a52abdeaad (patch) | |
tree | 23a720832fb9de901538ca03819946df679ff2cd /Include/symtable.h | |
parent | fd3a91cbf93dd7bd97f01add9c90075d63cd7316 (diff) | |
download | cpython-5f2df88b63e50d23914e97ec778861a52abdeaad.zip cpython-5f2df88b63e50d23914e97ec778861a52abdeaad.tar.gz cpython-5f2df88b63e50d23914e97ec778861a52abdeaad.tar.bz2 |
bpo-35177: Add dependencies between header files (GH-10361)
* ast.h now includes Python-ast.h and node.h
* parsetok.h now includes node.h and grammar.h
* symtable.h now includes Python-ast.h
* Modify asdl_c.py to enhance Python-ast.h:
* Add #ifndef/#define Py_PYTHON_AST_H to be able to include the header
twice
* Add "extern { ... }" for C++
* Undefine "Yield" macro conflicting with winbase.h
* Remove "#undef Yield" from C files, it's now done in Python-ast.h
* Remove now useless includes in C files
Diffstat (limited to 'Include/symtable.h')
-rw-r--r-- | Include/symtable.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/symtable.h b/Include/symtable.h index 007f88d..949022b 100644 --- a/Include/symtable.h +++ b/Include/symtable.h @@ -1,11 +1,12 @@ #ifndef Py_LIMITED_API #ifndef Py_SYMTABLE_H #define Py_SYMTABLE_H - #ifdef __cplusplus extern "C" { #endif +#include "Python-ast.h" /* mod_ty */ + /* XXX(ncoghlan): This is a weird mix of public names and interpreter internal * names. */ @@ -115,4 +116,4 @@ PyAPI_FUNC(void) PySymtable_Free(struct symtable *); } #endif #endif /* !Py_SYMTABLE_H */ -#endif /* Py_LIMITED_API */ +#endif /* !Py_LIMITED_API */ |