summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-07 17:46:13 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-07 17:46:13 (GMT)
commitb05a5c7698cd8dff3e5c02e513db765ba12281f0 (patch)
tree86831a79ad6434c88c57ed7cc730cfcd66c3554c /Python/ceval.c
parent8813b58ffa6d83522ad2bbec0437c5c0e52a7ba9 (diff)
downloadcpython-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 'Python/ceval.c')
-rw-r--r--Python/ceval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 58f0a8c..e23ea72 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -43,7 +43,6 @@ PERFORMANCE OF THIS SOFTWARE.
#include "frameobject.h"
#include "eval.h"
#include "opcode.h"
-#include "graminit.h"
#include <ctype.h>
@@ -2637,7 +2636,8 @@ exec_statement(f, prog, globals, locals)
if (PyFile_Check(prog)) {
FILE *fp = PyFile_AsFile(prog);
char *name = PyString_AsString(PyFile_Name(prog));
- if (PyRun_File(fp, name, file_input, globals, locals) == NULL)
+ if (PyRun_File(fp, name, Py_file_input,
+ globals, locals) == NULL)
return -1;
return 0;
}
@@ -2647,7 +2647,7 @@ exec_statement(f, prog, globals, locals)
"embedded '\\0' in exec string");
return -1;
}
- v = PyRun_String(s, file_input, globals, locals);
+ v = PyRun_String(s, Py_file_input, globals, locals);
if (v == NULL)
return -1;
Py_DECREF(v);