Kaydet (Commit) 2786d906 authored tarafından Nicholas Bastin's avatar Nicholas Bastin

A few more PyThreadState_Get to PyThreadState_GET conversions

üst f167dc33
......@@ -4457,7 +4457,7 @@ DL_EXPORT(void) init_bsddb(void)
#if defined(WITH_THREAD) && !defined(MYDB_USE_GILSTATE)
/* Save the current interpreter, so callbacks can do the right thing. */
_db_interpreterState = PyThreadState_Get()->interp;
_db_interpreterState = PyThreadState_GET()->interp;
#endif
/* Create the module and add the functions */
......
......@@ -178,7 +178,7 @@ set_hook(const char *funcname, PyObject **hook_var,
Py_INCREF(function);
*hook_var = function;
Py_XDECREF(tmp);
*tstate = PyThreadState_Get();
*tstate = PyThreadState_GET();
}
else {
PyOS_snprintf(buf, sizeof(buf),
......
......@@ -109,7 +109,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
}
#if !(defined(PYOS_OS2) && defined(PYCC_GCC))
dlopenflags = PyThreadState_Get()->interp->dlopenflags;
dlopenflags = PyThreadState_GET()->interp->dlopenflags;
#endif
if (Py_VerboseFlag)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment