Mercurial > cpython-lru_cache-weakref
diff Modules/cPickle.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 | 82a3fbda3363 |
| children | 9a1225923918 |
line wrap: on
line diff
--- a/Modules/cPickle.c Wed May 07 17:42:41 1997 +0000 +++ b/Modules/cPickle.c Wed May 07 17:46:13 1997 +0000 @@ -58,7 +58,6 @@ #include "Python.h" #include "cStringIO.h" -#include "graminit.h" #include "mymath.h" #include <errno.h> @@ -1883,7 +1882,7 @@ return NULL; if (!(import = - PyRun_String(import_str, eval_input, eval_dict, eval_dict))) { + PyRun_String(import_str, Py_eval_input, eval_dict, eval_dict))) { free(import_str); return NULL; } @@ -2223,7 +2222,7 @@ UNLESS(eval_dict = Py_BuildValue("{s{}}", "__builtins__")) goto finally; - UNLESS(str = PyRun_String(s, eval_input, eval_dict, eval_dict)) + UNLESS(str = PyRun_String(s, Py_eval_input, eval_dict, eval_dict)) goto finally; if (PyList_Append(self->stack, str) < 0) @@ -3870,6 +3869,10 @@ /**************************************************************************** $Log$ + Revision 2.5 1997/05/07 17:46:13 guido + Instead of importing graminit.h whenever one of the three grammar 'root' + symbols is needed, define these in Python.h with a Py_ prefix. + Revision 2.4 1997/04/09 17:47:47 guido Give PyErr_Format a new name and make it static.
