Changed random calls to PyThreadState_Get() to use the macro

This commit is contained in:
Nicholas Bastin 2004-03-24 22:22:12 +00:00
parent c69ebe8d50
commit e5662aedef
8 changed files with 26 additions and 26 deletions

View file

@ -321,7 +321,7 @@ imp_release_lock(PyObject *self, PyObject *noargs)
PyObject *
PyImport_GetModuleDict(void)
{
PyInterpreterState *interp = PyThreadState_Get()->interp;
PyInterpreterState *interp = PyThreadState_GET()->interp;
if (interp->modules == NULL)
Py_FatalError("PyImport_GetModuleDict: no module dictionary!");
return interp->modules;
@ -353,7 +353,7 @@ PyImport_Cleanup(void)
int pos, ndone;
char *name;
PyObject *key, *value, *dict;
PyInterpreterState *interp = PyThreadState_Get()->interp;
PyInterpreterState *interp = PyThreadState_GET()->interp;
PyObject *modules = interp->modules;
if (modules == NULL)