Mercurial > cpython-lru_cache-weakref
diff Python/pystate.c @ 27978:4b99a701defe legacy-trunk
- PyEval_GetFrame() is now declared to return a PyFrameObject *
instead of a plain PyObject *. (SF patch #686601 by Ben Laurie.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 19 Feb 2003 15:53:17 +0000 |
| parents | e61b946474df |
| children | 850626d47574 |
line wrap: on
line diff
--- a/Python/pystate.c Wed Feb 19 15:25:10 2003 +0000 +++ b/Python/pystate.c Wed Feb 19 15:53:17 2003 +0000 @@ -35,7 +35,7 @@ static PyInterpreterState *interp_head = NULL; PyThreadState *_PyThreadState_Current = NULL; -unaryfunc _PyThreadState_GetFrame = NULL; +PyThreadFrameGetter _PyThreadState_GetFrame = NULL; PyInterpreterState * @@ -126,7 +126,7 @@ { PyThreadState *tstate = PyMem_NEW(PyThreadState, 1); if (_PyThreadState_GetFrame == NULL) - _PyThreadState_GetFrame = (unaryfunc)threadstate_getframe; + _PyThreadState_GetFrame = threadstate_getframe; if (tstate != NULL) { tstate->interp = interp;
