summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
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 /Python/ceval.c
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 'Python/ceval.c')
-rw-r--r--Python/ceval.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 801f08d..9a5d039 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3077,7 +3077,7 @@ PyEval_SetTrace(Py_tracefunc func, PyObject *arg)
PyObject *
PyEval_GetBuiltins(void)
{
- PyFrameObject *current_frame = (PyFrameObject *)PyEval_GetFrame();
+ PyFrameObject *current_frame = PyEval_GetFrame();
if (current_frame == NULL)
return PyThreadState_Get()->interp->builtins;
else
@@ -3087,7 +3087,7 @@ PyEval_GetBuiltins(void)
PyObject *
PyEval_GetLocals(void)
{
- PyFrameObject *current_frame = (PyFrameObject *)PyEval_GetFrame();
+ PyFrameObject *current_frame = PyEval_GetFrame();
if (current_frame == NULL)
return NULL;
PyFrame_FastToLocals(current_frame);
@@ -3097,31 +3097,31 @@ PyEval_GetLocals(void)
PyObject *
PyEval_GetGlobals(void)
{
- PyFrameObject *current_frame = (PyFrameObject *)PyEval_GetFrame();
+ PyFrameObject *current_frame = PyEval_GetFrame();
if (current_frame == NULL)
return NULL;
else
return current_frame->f_globals;
}
-PyObject *
+PyFrameObject *
PyEval_GetFrame(void)
{
PyThreadState *tstate = PyThreadState_Get();
- return _PyThreadState_GetFrame((PyObject *)tstate);
+ return _PyThreadState_GetFrame(tstate);
}
int
PyEval_GetRestricted(void)
{
- PyFrameObject *current_frame = (PyFrameObject *)PyEval_GetFrame();
+ PyFrameObject *current_frame = PyEval_GetFrame();
return current_frame == NULL ? 0 : current_frame->f_restricted;
}
int
PyEval_MergeCompilerFlags(PyCompilerFlags *cf)
{
- PyFrameObject *current_frame = (PyFrameObject *)PyEval_GetFrame();
+ PyFrameObject *current_frame = PyEval_GetFrame();
int result = cf->cf_flags != 0;
if (current_frame != NULL) {