@@ -34,7 +34,6 @@ PERFORMANCE OF THIS SOFTWARE.
3434#include "Python.h"
3535
3636#include "node.h"
37- #include "graminit.h"
3837#include "compile.h"
3938#include "eval.h"
4039
@@ -283,11 +282,11 @@ builtin_compile(self, args)
283282 if (!PyArg_ParseTuple (args , "sss:compile" , & str , & filename , & startstr ))
284283 return NULL ;
285284 if (strcmp (startstr , "exec" ) == 0 )
286- start = file_input ;
285+ start = Py_file_input ;
287286 else if (strcmp (startstr , "eval" ) == 0 )
288- start = eval_input ;
287+ start = Py_eval_input ;
289288 else if (strcmp (startstr , "single" ) == 0 )
290- start = single_input ;
289+ start = Py_single_input ;
291290 else {
292291 PyErr_SetString (PyExc_ValueError ,
293292 "compile() mode must be 'exec' or 'eval' or 'single'" );
@@ -521,7 +520,7 @@ builtin_eval(self, args)
521520 }
522521 while (* str == ' ' || * str == '\t' )
523522 str ++ ;
524- return PyRun_String (str , eval_input , globals , locals );
523+ return PyRun_String (str , Py_eval_input , globals , locals );
525524}
526525
527526static PyObject *
@@ -558,7 +557,7 @@ builtin_execfile(self, args)
558557 PyErr_SetFromErrno (PyExc_IOError );
559558 return NULL ;
560559 }
561- res = PyRun_File (fp , filename , file_input , globals , locals );
560+ res = PyRun_File (fp , filename , Py_file_input , globals , locals );
562561 Py_BEGIN_ALLOW_THREADS
563562 fclose (fp );
564563 Py_END_ALLOW_THREADS
@@ -882,7 +881,7 @@ builtin_input(self, args)
882881 PyEval_GetBuiltins ()) != 0 )
883882 return NULL ;
884883 }
885- res = PyRun_String (str , eval_input , globals , locals );
884+ res = PyRun_String (str , Py_eval_input , globals , locals );
886885 Py_DECREF (line );
887886 return res ;
888887}
0 commit comments