mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Instead of importing graminit.h whenever one of the three grammar 'root'
symbols is needed, define these in Python.h with a Py_ prefix.
This commit is contained in:
parent
8813b58ffa
commit
b05a5c7698
7 changed files with 39 additions and 21 deletions
|
@ -112,4 +112,10 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "pyfpe.h"
|
||||
|
||||
/* These definitions much match corresponding definitions in graminit.h.
|
||||
There's code in compile.c that checks that they are the same. */
|
||||
#define Py_single_input 256
|
||||
#define Py_file_input 257
|
||||
#define Py_eval_input 258
|
||||
|
||||
#endif /* !Py_PYTHON_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue