summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-21 18:33:30 +0000
committerGuido van Rossum <guido@python.org>1998-12-21 18:33:30 +0000
commit66261ee76c7be0abf6fb99ef97338a88fd66ed24 (patch)
tree5be4596b4d6461e829cdc9573a9308b1393e2da3 /Python
parenta7f2a883522fc886924ae4a9b36beb9e83439681 (diff)
downloadcpython-66261ee76c7be0abf6fb99ef97338a88fd66ed24.tar.gz
Use PyThreadState_GET() macro.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
-rw-r--r--Python/errors.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 3625473940..b013ca15b7 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -365,7 +365,7 @@ eval_code2(co, globals, locals,
register PyFrameObject *f; /* Current frame */
register PyObject **fastlocals;
PyObject *retval = NULL; /* Return value */
- PyThreadState *tstate = PyThreadState_Get();
+ PyThreadState *tstate = PyThreadState_GET();
unsigned char *first_instr;
#ifdef LLTRACE
int lltrace;
diff --git a/Python/errors.c b/Python/errors.c
index 423f792538..f2768ee43d 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -55,7 +55,7 @@ PyErr_Restore(type, value, traceback)
PyObject *value;
PyObject *traceback;
{
- PyThreadState *tstate = PyThreadState_Get();
+ PyThreadState *tstate = PyThreadState_GET();
PyObject *oldtype, *oldvalue, *oldtraceback;
if (traceback != NULL && !PyTraceBack_Check(traceback)) {