summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-02-19 15:53:17 (GMT)
committerGuido van Rossum <guido@python.org>2003-02-19 15:53:17 (GMT)
commit6297a7a9fbf7675bf23a9b5aa822ed5aaec19647 (patch)
tree39464e145aa29a7b507fb3b9f080841e3f8f00e0 /Include/pystate.h
parent162e38c6a312aa3e9c353419301087a4620c513c (diff)
downloadcpython-6297a7a9fbf7675bf23a9b5aa822ed5aaec19647.zip
cpython-6297a7a9fbf7675bf23a9b5aa822ed5aaec19647.tar.gz
cpython-6297a7a9fbf7675bf23a9b5aa822ed5aaec19647.tar.bz2
- PyEval_GetFrame() is now declared to return a PyFrameObject *
instead of a plain PyObject *. (SF patch #686601 by Ben Laurie.)
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index d4233bf..3e5b5b4 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -107,8 +107,10 @@ PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Next(PyInterpreterState *);
PyAPI_FUNC(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *);
PyAPI_FUNC(PyThreadState *) PyThreadState_Next(PyThreadState *);
+typedef struct _frame *(*PyThreadFrameGetter)(PyThreadState *self_);
+
/* hook for PyEval_GetFrame(), requested for Psyco */
-PyAPI_DATA(unaryfunc) _PyThreadState_GetFrame;
+PyAPI_DATA(PyThreadFrameGetter) _PyThreadState_GetFrame;
#ifdef __cplusplus
}