summaryrefslogtreecommitdiffstats
path: root/Include/cpython
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/cpython
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/cpython')
-rw-r--r--Include/cpython/ceval.h2
-rw-r--r--Include/cpython/pystate.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/Include/cpython/ceval.h b/Include/cpython/ceval.h
index aedc736..5a904bd 100644
--- a/Include/cpython/ceval.h
+++ b/Include/cpython/ceval.h
@@ -22,7 +22,7 @@ PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
flag was set, else return 0. */
PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
-PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, struct _interpreter_frame *f, int exc);
+PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc);
PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h
index 248320c..0d38604 100644
--- a/Include/cpython/pystate.h
+++ b/Include/cpython/pystate.h
@@ -46,7 +46,7 @@ typedef struct _cframe {
*/
int use_tracing;
/* Pointer to the currently executing frame (it can be NULL) */
- struct _interpreter_frame *current_frame;
+ struct _PyInterpreterFrame *current_frame;
struct _cframe *previous;
} CFrame;
@@ -258,7 +258,7 @@ PyAPI_FUNC(void) PyThreadState_DeleteCurrent(void);
/* Frame evaluation API */
-typedef PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, struct _interpreter_frame *, int);
+typedef PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, struct _PyInterpreterFrame *, int);
PyAPI_FUNC(_PyFrameEvalFunction) _PyInterpreterState_GetEvalFrameFunc(
PyInterpreterState *interp);