summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_ceval.h
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 /Include/internal/pycore_ceval.h
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 'Include/internal/pycore_ceval.h')
-rw-r--r--Include/internal/pycore_ceval.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index 53d0b5c..70178e3 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -47,7 +47,7 @@ extern PyObject *_PyEval_BuiltinsFromGlobals(
static inline PyObject*
-_PyEval_EvalFrame(PyThreadState *tstate, struct _interpreter_frame *frame, int throwflag)
+_PyEval_EvalFrame(PyThreadState *tstate, struct _PyInterpreterFrame *frame, int throwflag)
{
if (tstate->interp->eval_frame == NULL) {
return _PyEval_EvalFrameDefault(tstate, frame, throwflag);
@@ -116,7 +116,7 @@ static inline void _Py_LeaveRecursiveCall_inline(void) {
#define Py_LeaveRecursiveCall() _Py_LeaveRecursiveCall_inline()
-struct _interpreter_frame *_PyEval_GetFrame(void);
+struct _PyInterpreterFrame *_PyEval_GetFrame(void);
PyObject *_Py_MakeCoro(PyFunctionObject *func);