summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorNicholas Bastin <nick.bastin@gmail.com>2004-03-24 22:22:12 (GMT)
committerNicholas Bastin <nick.bastin@gmail.com>2004-03-24 22:22:12 (GMT)
commite5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a (patch)
tree747cb7e8126cbbf85eec3c5fe05d8b38728bba3a /Python/pythonrun.c
parentc69ebe8d50529eae281275c841428eb9b375a442 (diff)
downloadcpython-e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a.zip
cpython-e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a.tar.gz
cpython-e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a.tar.bz2
Changed random calls to PyThreadState_Get() to use the macro
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 614e65d..113ff2d 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -316,7 +316,7 @@ Py_Finalize(void)
initialized = 0;
/* Get current thread state and interpreter pointer */
- tstate = PyThreadState_Get();
+ tstate = PyThreadState_GET();
interp = tstate->interp;
/* Disable signal handling */
@@ -529,7 +529,7 @@ Py_EndInterpreter(PyThreadState *tstate)
{
PyInterpreterState *interp = tstate->interp;
- if (tstate != PyThreadState_Get())
+ if (tstate != PyThreadState_GET())
Py_FatalError("Py_EndInterpreter: thread is not current");
if (tstate->frame != NULL)
Py_FatalError("Py_EndInterpreter: thread still has a frame");
@@ -1461,7 +1461,7 @@ err_input(perrdetail *err)
msg = "too many levels of indentation";
break;
case E_DECODE: { /* XXX */
- PyThreadState* tstate = PyThreadState_Get();
+ PyThreadState* tstate = PyThreadState_GET();
PyObject* value = tstate->curexc_value;
if (value != NULL) {
u = PyObject_Repr(value);