diff options
author | Nicholas Bastin <nick.bastin@gmail.com> | 2004-03-24 22:22:12 (GMT) |
---|---|---|
committer | Nicholas Bastin <nick.bastin@gmail.com> | 2004-03-24 22:22:12 (GMT) |
commit | e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a (patch) | |
tree | 747cb7e8126cbbf85eec3c5fe05d8b38728bba3a /Python/ceval.c | |
parent | c69ebe8d50529eae281275c841428eb9b375a442 (diff) | |
download | cpython-e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a.zip cpython-e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a.tar.gz cpython-e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a.tar.bz2 |
Changed random calls to PyThreadState_Get() to use the macro
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index e136cb0..0595dbe 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2843,7 +2843,7 @@ do_raise(PyObject *type, PyObject *value, PyObject *tb) { if (type == NULL) { /* Reraise */ - PyThreadState *tstate = PyThreadState_Get(); + PyThreadState *tstate = PyThreadState_GET(); type = tstate->exc_type == NULL ? Py_None : tstate->exc_type; value = tstate->exc_value; tb = tstate->exc_traceback; @@ -3221,7 +3221,7 @@ maybe_call_line_trace(Py_tracefunc func, PyObject *obj, void PyEval_SetProfile(Py_tracefunc func, PyObject *arg) { - PyThreadState *tstate = PyThreadState_Get(); + PyThreadState *tstate = PyThreadState_GET(); PyObject *temp = tstate->c_profileobj; Py_XINCREF(arg); tstate->c_profilefunc = NULL; @@ -3236,7 +3236,7 @@ PyEval_SetProfile(Py_tracefunc func, PyObject *arg) void PyEval_SetTrace(Py_tracefunc func, PyObject *arg) { - PyThreadState *tstate = PyThreadState_Get(); + PyThreadState *tstate = PyThreadState_GET(); PyObject *temp = tstate->c_traceobj; Py_XINCREF(arg); tstate->c_tracefunc = NULL; @@ -3254,7 +3254,7 @@ PyEval_GetBuiltins(void) { PyFrameObject *current_frame = PyEval_GetFrame(); if (current_frame == NULL) - return PyThreadState_Get()->interp->builtins; + return PyThreadState_GET()->interp->builtins; else return current_frame->f_builtins; } @@ -3282,7 +3282,7 @@ PyEval_GetGlobals(void) PyFrameObject * PyEval_GetFrame(void) { - PyThreadState *tstate = PyThreadState_Get(); + PyThreadState *tstate = PyThreadState_GET(); return _PyThreadState_GetFrame(tstate); } |