mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-130931: Add pycore_interpframe.h internal header (#131249)
Move _PyInterpreterFrame and associated functions to a new pycore_interpframe.h header.
This commit is contained in:
parent
6146295a5b
commit
5c44d7d99c
11 changed files with 396 additions and 379 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_critical_section.h" // Py_BEGIN_CRITICAL_SECTION_MUT()
|
||||
#include "pycore_frame.h" // PyFrameObject members
|
||||
#include "pycore_interp.h" // PyInterpreterState.warnings
|
||||
#include "pycore_long.h" // _PyLong_GetZero()
|
||||
#include "pycore_pyerrors.h" // _PyErr_Occurred()
|
||||
|
|
|
@ -2,20 +2,17 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_brc.h" // struct _brc_thread_state
|
||||
#include "pycore_ceval.h" // _Py_set_eval_breaker_bit()
|
||||
#include "pycore_context.h"
|
||||
#include "pycore_dict.h" // _PyInlineValuesSize()
|
||||
#include "pycore_frame.h" // FRAME_CLEARED
|
||||
#include "pycore_freelist.h" // _PyObject_ClearFreeLists()
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_initconfig.h" // _PyStatus_NO_MEMORY()
|
||||
#include "pycore_interp.h" // PyInterpreterState.gc
|
||||
#include "pycore_object.h"
|
||||
#include "pycore_object_alloc.h" // _PyObject_MallocWithType()
|
||||
#include "pycore_object_stack.h"
|
||||
#include "pycore_pyerrors.h"
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_tstate.h" // _PyThreadStateImpl
|
||||
#include "pycore_weakref.h" // _PyWeakref_ClearRef()
|
||||
|
||||
#include "pydtrace.h"
|
||||
#include "pycore_uniqueid.h" // _PyObject_MergeThreadLocalRefcounts()
|
||||
|
||||
|
||||
// enable the "mark alive" pass of GC
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_audit.h" // _PySys_Audit()
|
||||
#include "pycore_ceval.h" // export _PyEval_SetProfile()
|
||||
#include "pycore_frame.h" // PyFrameObject members
|
||||
#include "pycore_object.h"
|
||||
|
||||
#include "opcode.h"
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
#include "pycore_critical_section.h"
|
||||
#include "pycore_descrobject.h" // _PyMethodWrapper_Type
|
||||
#include "pycore_dict.h" // DICT_KEYS_UNICODE
|
||||
#include "pycore_frame.h" // FRAME_SPECIALS_SIZE
|
||||
#include "pycore_function.h" // _PyFunction_GetVersionForCurrentState()
|
||||
#include "pycore_interpframe.h" // FRAME_SPECIALS_SIZE
|
||||
#include "pycore_list.h" // _PyListIterObject
|
||||
#include "pycore_long.h" // _PyLong_IsNonNegativeCompact()
|
||||
#include "pycore_moduleobject.h"
|
||||
|
|
|
@ -3,14 +3,12 @@
|
|||
#include "pycore_gc.h" // PyGC_Head
|
||||
#include "pycore_hashtable.h" // _Py_hashtable_t
|
||||
#include "pycore_initconfig.h" // _PyStatus_NO_MEMORY()
|
||||
#include "pycore_interpframe.h" // _PyInterpreterFrame
|
||||
#include "pycore_lock.h" // PyMutex_LockFlags()
|
||||
#include "pycore_object.h" // _PyType_PreHeaderSize()
|
||||
#include "pycore_pymem.h" // _Py_tracemalloc_config
|
||||
#include "pycore_runtime.h" // _Py_ID()
|
||||
#include "pycore_traceback.h" // _Py_DumpASCII()
|
||||
#include <pycore_frame.h>
|
||||
|
||||
#include "frameobject.h" // _PyInterpreterFrame_GetLine
|
||||
|
||||
#include <stdlib.h> // malloc()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue