diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-25 16:22:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 16:22:00 +0100 |
commit | 87af12bff33b3e7546fa26158b7d8680ecb6ecec (patch) | |
tree | e51866d5b4f968074beadf3ada9da856601a43d4 /Python/sysmodule.c | |
parent | f780d9690f1a009a56ac0c653ec9608e6b2aeff4 (diff) | |
download | cpython-87af12bff33b3e7546fa26158b7d8680ecb6ecec.tar.gz cpython-87af12bff33b3e7546fa26158b7d8680ecb6ecec.zip |
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/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 342e48ed422..a97d0341ddc 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -18,7 +18,7 @@ Data members: #include "pycore_call.h" // _PyObject_CallNoArgs() #include "pycore_ceval.h" // _Py_RecursionLimitLowerWaterMark() #include "pycore_code.h" // _Py_QuickenedCount -#include "pycore_frame.h" // InterpreterFrame +#include "pycore_frame.h" // _PyInterpreterFrame #include "pycore_initconfig.h" // _PyStatus_EXCEPTION() #include "pycore_namespace.h" // _PyNamespace_New() #include "pycore_object.h" // _PyObject_IS_GC() @@ -1807,7 +1807,7 @@ sys__getframe_impl(PyObject *module, int depth) /*[clinic end generated code: output=d438776c04d59804 input=c1be8a6464b11ee5]*/ { PyThreadState *tstate = _PyThreadState_GET(); - InterpreterFrame *frame = tstate->cframe->current_frame; + _PyInterpreterFrame *frame = tstate->cframe->current_frame; if (_PySys_Audit(tstate, "sys._getframe", NULL) < 0) { return NULL; |