mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
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.
(cherry picked from commit 27b9894033
)
This commit is contained in:
parent
81686e701c
commit
96254a9acd
21 changed files with 61 additions and 28 deletions
|
@ -4,7 +4,6 @@
|
|||
#include "pycore_long.h" // _PyLong_GetZero()
|
||||
#include "pycore_pyerrors.h"
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "frameobject.h" // PyFrame_GetBack()
|
||||
#include "pycore_frame.h"
|
||||
#include "clinic/_warnings.c.h"
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include "pycore_dict.h"
|
||||
#include "dictobject.h"
|
||||
#include "frameobject.h"
|
||||
#include "pycore_frame.h"
|
||||
#include "opcode.h"
|
||||
#include "pydtrace.h"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include "Python.h"
|
||||
#include "frameobject.h"
|
||||
#include "pycore_code.h" // stats
|
||||
#include "pycore_code.h" // stats
|
||||
#include "pycore_frame.h"
|
||||
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
|
||||
#include "opcode.h"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include "Python.h"
|
||||
#include "frameobject.h"
|
||||
#include "pycore_frame.h"
|
||||
|
||||
#include "pycore_pyerrors.h"
|
||||
|
|
|
@ -31,7 +31,7 @@ Data members:
|
|||
#include "pycore_structseq.h" // _PyStructSequence_InitType()
|
||||
#include "pycore_tuple.h" // _PyTuple_FromArray()
|
||||
|
||||
#include "frameobject.h" // PyFrame_GetBack()
|
||||
#include "frameobject.h" // PyFrame_FastToLocalsWithError()
|
||||
#include "pydtrace.h"
|
||||
#include "osdefs.h" // DELIM
|
||||
#include "stdlib_module_names.h" // _Py_stdlib_module_names
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
#include "frameobject.h" // PyFrame_GetBack()
|
||||
#include "pycore_ast.h" // asdl_seq_*
|
||||
#include "pycore_call.h" // _PyObject_CallMethodFormat()
|
||||
#include "pycore_compile.h" // _PyAST_Optimize
|
||||
|
@ -15,7 +14,9 @@
|
|||
#include "pycore_pyerrors.h" // _PyErr_Fetch()
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_traceback.h" // EXCEPTION_TB_HEADER
|
||||
|
||||
#include "../Parser/pegen.h" // _PyPegen_byte_offset_to_character_offset()
|
||||
#include "frameobject.h" // PyFrame_New()
|
||||
#include "structmember.h" // PyMemberDef
|
||||
#include "osdefs.h" // SEP
|
||||
#ifdef HAVE_FCNTL_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue