diff options
author | Guido van Rossum <guido@python.org> | 1997-05-07 17:46:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-07 17:46:13 (GMT) |
commit | b05a5c7698cd8dff3e5c02e513db765ba12281f0 (patch) | |
tree | 86831a79ad6434c88c57ed7cc730cfcd66c3554c /Include | |
parent | 8813b58ffa6d83522ad2bbec0437c5c0e52a7ba9 (diff) | |
download | cpython-b05a5c7698cd8dff3e5c02e513db765ba12281f0.zip cpython-b05a5c7698cd8dff3e5c02e513db765ba12281f0.tar.gz cpython-b05a5c7698cd8dff3e5c02e513db765ba12281f0.tar.bz2 |
Instead of importing graminit.h whenever one of the three grammar 'root'
symbols is needed, define these in Python.h with a Py_ prefix.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/Python.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h index d13003d..3be6632 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -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 */ |