mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
- PyEval_GetFrame() is now declared to return a PyFrameObject *
instead of a plain PyObject *. (SF patch #686601 by Ben Laurie.)
This commit is contained in:
parent
162e38c6a3
commit
6297a7a9fb
6 changed files with 19 additions and 12 deletions
|
|
@ -35,7 +35,7 @@ static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */
|
|||
static PyInterpreterState *interp_head = NULL;
|
||||
|
||||
PyThreadState *_PyThreadState_Current = NULL;
|
||||
unaryfunc _PyThreadState_GetFrame = NULL;
|
||||
PyThreadFrameGetter _PyThreadState_GetFrame = NULL;
|
||||
|
||||
|
||||
PyInterpreterState *
|
||||
|
|
@ -126,7 +126,7 @@ PyThreadState_New(PyInterpreterState *interp)
|
|||
{
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue