diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-25 15:22:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 15:22:00 (GMT) |
commit | 87af12bff33b3e7546fa26158b7d8680ecb6ecec (patch) | |
tree | e51866d5b4f968074beadf3ada9da856601a43d4 /Include/cpython/pystate.h | |
parent | f780d9690f1a009a56ac0c653ec9608e6b2aeff4 (diff) | |
download | cpython-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/pystate.h')
-rw-r--r-- | Include/cpython/pystate.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |