diff options
author | Guido van Rossum <guido@python.org> | 1997-05-07 17:46:13 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-07 17:46:13 +0000 |
commit | b05a5c7698cd8dff3e5c02e513db765ba12281f0 (patch) | |
tree | 86831a79ad6434c88c57ed7cc730cfcd66c3554c /Python/import.c | |
parent | 8813b58ffa6d83522ad2bbec0437c5c0e52a7ba9 (diff) | |
download | cpython-git-b05a5c7698cd8dff3e5c02e513db765ba12281f0.tar.gz |
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 'Python/import.c')
-rw-r--r-- | Python/import.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/import.c b/Python/import.c index ea6440a2c9..f2d80401d6 100644 --- a/Python/import.c +++ b/Python/import.c @@ -35,7 +35,6 @@ PERFORMANCE OF THIS SOFTWARE. #include "node.h" #include "token.h" -#include "graminit.h" #include "errcode.h" #include "marshal.h" #include "compile.h" @@ -43,8 +42,6 @@ PERFORMANCE OF THIS SOFTWARE. #include "osdefs.h" #include "importdl.h" #ifdef macintosh -/* 'argument' is a grammar symbol, but also used in some mac header files */ -#undef argument #include "macglue.h" #endif @@ -317,7 +314,7 @@ parse_source_module(pathname, fp) PyCodeObject *co; node *n; - n = PyParser_SimpleParseFile(fp, pathname, file_input); + n = PyParser_SimpleParseFile(fp, pathname, Py_file_input); if (n == NULL) return NULL; co = PyNode_Compile(n, pathname); |