Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 5438:e926c331ebbf legacy-trunk
Instead of importing graminit.h whenever one of the three grammar 'root'
symbols is needed, define these in Python.h with a Py_ prefix.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 07 May 1997 17:46:13 +0000 |
| parents | 7f90a671cc1d |
| children | fb39d288664b |
line wrap: on
line diff
--- a/Python/import.c Wed May 07 17:42:41 1997 +0000 +++ b/Python/import.c Wed May 07 17:46:13 1997 +0000 @@ -35,7 +35,6 @@ #include "node.h" #include "token.h" -#include "graminit.h" #include "errcode.h" #include "marshal.h" #include "compile.h" @@ -43,8 +42,6 @@ #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 @@ 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);
