diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-19 10:02:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 10:02:33 (GMT) |
commit | 27b989403356ccdd47545a93aeab8434e9c69f21 (patch) | |
tree | 731c6554ce03b81ed4fca91035ddad1efec632a6 /Modules | |
parent | 2664d9aacf25aa18e1753e57f80f345ed9bd31e0 (diff) | |
download | cpython-27b989403356ccdd47545a93aeab8434e9c69f21.zip cpython-27b989403356ccdd47545a93aeab8434e9c69f21.tar.gz cpython-27b989403356ccdd47545a93aeab8434e9c69f21.tar.bz2 |
gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938)
Move the follow functions and type from frameobject.h to pyframe.h,
so the standard <Python.h> provide frame getter functions:
* PyFrame_Check()
* PyFrame_GetBack()
* PyFrame_GetBuiltins()
* PyFrame_GetGenerator()
* PyFrame_GetGlobals()
* PyFrame_GetLasti()
* PyFrame_GetLocals()
* PyFrame_Type
Remove #include "frameobject.h" from many C files. It's no longer
needed.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/callbacks.c | 1 | ||||
-rw-r--r-- | Modules/_testcapimodule.c | 1 | ||||
-rw-r--r-- | Modules/_xxsubinterpretersmodule.c | 1 | ||||
-rw-r--r-- | Modules/faulthandler.c | 2 | ||||
-rw-r--r-- | Modules/pyexpat.c | 1 |
5 files changed, 0 insertions, 6 deletions
diff --git a/Modules/_ctypes/callbacks.c b/Modules/_ctypes/callbacks.c index 220b612..2a668c0 100644 --- a/Modules/_ctypes/callbacks.c +++ b/Modules/_ctypes/callbacks.c @@ -10,7 +10,6 @@ #endif #include "pycore_call.h" // _PyObject_CallNoArgs() -#include "frameobject.h" #include <stdbool.h> diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 54957db..8bf4de7 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -21,7 +21,6 @@ #define PY_SSIZE_T_CLEAN #include "Python.h" -#include "frameobject.h" // PyFrame_Check() #include "datetime.h" // PyDateTimeAPI #include "marshal.h" // PyMarshal_WriteLongToFile #include "structmember.h" // PyMemberDef diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c index eed9a8a..f40601a 100644 --- a/Modules/_xxsubinterpretersmodule.c +++ b/Modules/_xxsubinterpretersmodule.c @@ -6,7 +6,6 @@ #endif #include "Python.h" -#include "frameobject.h" #include "pycore_frame.h" #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_interpreteridobject.h" diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index d33cd58..b362687 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -5,8 +5,6 @@ #include "pycore_signal.h" // Py_NSIG #include "pycore_traceback.h" // _Py_DumpTracebackThreads -#include "frameobject.h" - #include <object.h> #include <signal.h> #include <signal.h> diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index b8535df..6783473 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -2,7 +2,6 @@ #include <ctype.h> #include "structmember.h" // PyMemberDef -#include "frameobject.h" #include "expat.h" #include "pyexpat.h" |