summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-25 15:22:00 (GMT)
committerGitHub <noreply@github.com>2022-02-25 15:22:00 (GMT)
commit87af12bff33b3e7546fa26158b7d8680ecb6ecec (patch)
treee51866d5b4f968074beadf3ada9da856601a43d4 /Python/pystate.c
parentf780d9690f1a009a56ac0c653ec9608e6b2aeff4 (diff)
downloadcpython-87af12bff33b3e7546fa26158b7d8680ecb6ecec.zip
cpython-87af12bff33b3e7546fa26158b7d8680ecb6ecec.tar.gz
cpython-87af12bff33b3e7546fa26158b7d8680ecb6ecec.tar.bz2
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.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 8500001..edf2f62 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -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;