From 2786d90617993c5958a477067b20882395de5ac9 Mon Sep 17 00:00:00 2001 From: Nicholas Bastin Date: Thu, 25 Mar 2004 02:16:23 +0000 Subject: [PATCH] A few more PyThreadState_Get to PyThreadState_GET conversions --- Modules/_bsddb.c | 2 +- Modules/readline.c | 2 +- Python/dynload_shlib.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 444a00975de..6eb48664fe5 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -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 */ diff --git a/Modules/readline.c b/Modules/readline.c index e1515371241..37baf87e1fe 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -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), diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index af23f80a273..50851a876fa 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -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)