Mercurial > cpython-lru_cache-weakref
diff Modules/parsermodule.c @ 44350:26384b8180c7 legacy-trunk
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 19 Dec 2007 02:37:44 +0000 |
| parents | 6620a510e9a9 |
| children | 0cbe94bea2c7 |
line wrap: on
line diff
--- a/Modules/parsermodule.c Wed Dec 19 02:02:04 2007 +0000 +++ b/Modules/parsermodule.c Wed Dec 19 02:37:44 2007 +0000 @@ -693,7 +693,7 @@ PyErr_Format(parser_error, "second item in terminal node must be a string," " found %s", - Py_Type(temp)->tp_name); + Py_TYPE(temp)->tp_name); Py_DECREF(temp); return 0; } @@ -706,7 +706,7 @@ PyErr_Format(parser_error, "third item in terminal node must be an" " integer, found %s", - Py_Type(temp)->tp_name); + Py_TYPE(temp)->tp_name); Py_DECREF(o); Py_DECREF(temp); return 0; @@ -3232,7 +3232,7 @@ { PyObject *module, *copyreg; - Py_Type(&PyST_Type) = &PyType_Type; + Py_TYPE(&PyST_Type) = &PyType_Type; module = Py_InitModule("parser", parser_functions); if (module == NULL) return;
