mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-46836: Rename InterpreterFrame to _PyInterpreterFrame (GH-31583)
Rename also struct _interpreter_frame to struct _PyInterpreterFrame. Reduce risk of name conflicts if a project includes pycore_frame.h.
This commit is contained in:
parent
f780d9690f
commit
87af12bff3
15 changed files with 138 additions and 138 deletions
|
@ -1410,7 +1410,7 @@ _PyThread_CurrentFrames(void)
|
|||
for (i = runtime->interpreters.head; i != NULL; i = i->next) {
|
||||
PyThreadState *t;
|
||||
for (t = i->threads.head; t != NULL; t = t->next) {
|
||||
InterpreterFrame *frame = t->cframe->current_frame;
|
||||
_PyInterpreterFrame *frame = t->cframe->current_frame;
|
||||
if (frame == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
@ -2197,7 +2197,7 @@ push_chunk(PyThreadState *tstate, int size)
|
|||
return res;
|
||||
}
|
||||
|
||||
InterpreterFrame *
|
||||
_PyInterpreterFrame *
|
||||
_PyThreadState_BumpFramePointerSlow(PyThreadState *tstate, size_t size)
|
||||
{
|
||||
assert(size < INT_MAX/sizeof(PyObject *));
|
||||
|
@ -2209,11 +2209,11 @@ _PyThreadState_BumpFramePointerSlow(PyThreadState *tstate, size_t size)
|
|||
else {
|
||||
tstate->datastack_top = top;
|
||||
}
|
||||
return (InterpreterFrame *)base;
|
||||
return (_PyInterpreterFrame *)base;
|
||||
}
|
||||
|
||||
void
|
||||
_PyThreadState_PopFrame(PyThreadState *tstate, InterpreterFrame * frame)
|
||||
_PyThreadState_PopFrame(PyThreadState *tstate, _PyInterpreterFrame * frame)
|
||||
{
|
||||
assert(tstate->datastack_chunk);
|
||||
PyObject **base = (PyObject **)frame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue