]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
A few more PyThreadState_Get to PyThreadState_GET conversions
authorNicholas Bastin <nick.bastin@gmail.com>
Thu, 25 Mar 2004 02:16:23 +0000 (02:16 +0000)
committerNicholas Bastin <nick.bastin@gmail.com>
Thu, 25 Mar 2004 02:16:23 +0000 (02:16 +0000)
Modules/_bsddb.c
Modules/readline.c
Python/dynload_shlib.c

index 444a00975de57ef2a176a0fee4d8660ae5d4721f..6eb48664fe51a28ec71813c82f090cd17dd4449a 100644 (file)
@@ -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 */
index e1515371241af4d6c9b2656e283561568f27ec0c..37baf87e1fe5ca205f3763b7b6db29c9c9a7b252 100644 (file)
@@ -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),
index af23f80a27321a678a963db2c9eb4cd61dcea93c..50851a876fab73d6304f341da2abffc690992eed 100644 (file)
@@ -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)