Skip to content

Commit 9428c7b

Browse files
committed
Clean up headers
1 parent 1710e24 commit 9428c7b

File tree

9 files changed

+10
-3
lines changed

9 files changed

+10
-3
lines changed

Include/internal/pycore_interp.h

-3
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,16 @@ extern "C" {
1919
#include "pycore_dict_state.h" // struct _Py_dict_state
2020
#include "pycore_dtoa.h" // struct _dtoa_state
2121
#include "pycore_exceptions.h" // struct _Py_exc_state
22-
#include "pycore_floatobject.h" // struct _Py_float_state
2322
#include "pycore_function.h" // FUNC_MAX_WATCHERS
2423
#include "pycore_gc.h" // struct _gc_runtime_state
2524
#include "pycore_genobject.h" // struct _Py_async_gen_state
2625
#include "pycore_global_objects.h"// struct _Py_interp_cached_objects
2726
#include "pycore_import.h" // struct _import_state
2827
#include "pycore_instruments.h" // _PY_MONITORING_EVENTS
29-
#include "pycore_list.h" // struct _Py_list_state
3028
#include "pycore_mimalloc.h" // struct _mimalloc_interp_state
3129
#include "pycore_object_state.h" // struct _py_object_state
3230
#include "pycore_obmalloc.h" // struct _obmalloc_state
3331
#include "pycore_tstate.h" // _PyThreadStateImpl
34-
#include "pycore_tuple.h" // struct _Py_tuple_state
3532
#include "pycore_typeobject.h" // struct types_state
3633
#include "pycore_unicodeobject.h" // struct _Py_unicode_state
3734
#include "pycore_warnings.h" // struct _warnings_runtime_state

Objects/abstract.c

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "pycore_ceval.h" // _Py_EnterRecursiveCallTstate()
88
#include "pycore_crossinterp.h" // _Py_CallInInterpreter()
99
#include "pycore_object.h" // _Py_CheckSlotResult()
10+
#include "pycore_list.h" // _PyList_Extend()
1011
#include "pycore_long.h" // _Py_IsNegative
1112
#include "pycore_pyerrors.h" // _PyErr_Occurred()
1213
#include "pycore_pystate.h" // _PyThreadState_GET()

Objects/object.c

+2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
#include "pycore_floatobject.h" // _PyFloat_DebugMallocStats()
1212
#include "pycore_initconfig.h" // _PyStatus_EXCEPTION()
1313
#include "pycore_hashtable.h" // _Py_hashtable_new()
14+
#include "pycore_list.h" // _PyList_DebugMallocStats()
1415
#include "pycore_memoryobject.h" // _PyManagedBuffer_Type
1516
#include "pycore_namespace.h" // _PyNamespace_Type
1617
#include "pycore_object.h" // PyAPI_DATA() _Py_SwappedOp definition
1718
#include "pycore_optimizer.h" // _PyUOpExecutor_Type, _PyUOpOptimizer_Type, ...
1819
#include "pycore_pyerrors.h" // _PyErr_Occurred()
1920
#include "pycore_pymem.h" // _PyMem_IsPtrFreed()
2021
#include "pycore_pystate.h" // _PyThreadState_GET()
22+
#include "pycore_tuple.h" // _PyTuple_DebugMallocStats()
2123
#include "pycore_symtable.h" // PySTEntry_Type
2224
#include "pycore_typeobject.h" // _PyBufferWrapper_Type
2325
#include "pycore_typevarobject.h" // _PyTypeAlias_Type, _Py_initialize_generic

Objects/tupleobject.c

+2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
#include "pycore_ceval.h" // _PyEval_GetBuiltin()
77
#include "pycore_gc.h" // _PyObject_GC_IS_TRACKED()
88
#include "pycore_initconfig.h" // _PyStatus_OK()
9+
#include "pycore_list.h" // _Py_memory_repeat()
910
#include "pycore_modsupport.h" // _PyArg_NoKwnames()
1011
#include "pycore_object.h" // _PyObject_GC_TRACK(), _Py_FatalRefcountError(), _PyDebugAllocatorStats()
12+
#include "pycore_tuple.h" // _PyTupleIterObject
1113

1214
/*[clinic input]
1315
class tuple "PyTupleObject *" "&PyTuple_Type"

Python/ceval.c

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "pycore_instruments.h"
1313
#include "pycore_intrinsics.h"
1414
#include "pycore_jit.h"
15+
#include "pycore_list.h" // _PyTuple_FromArraySteal()
1516
#include "pycore_long.h" // _PyLong_GetZero()
1617
#include "pycore_moduleobject.h" // PyModuleObject
1718
#include "pycore_object.h" // _PyObject_GC_TRACK()

Python/gc.c

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "pycore_object_alloc.h" // _PyObject_MallocWithType()
1313
#include "pycore_pyerrors.h"
1414
#include "pycore_pystate.h" // _PyThreadState_GET()
15+
#include "pycore_tuple.h" // _PyTuple_MaybeUntrack()
1516
#include "pycore_weakref.h" // _PyWeakref_ClearRef()
1617
#include "pydtrace.h"
1718

Python/gc_free_threading.c

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "pycore_object_stack.h"
1212
#include "pycore_pyerrors.h"
1313
#include "pycore_pystate.h" // _PyThreadState_GET()
14+
#include "pycore_tuple.h" // _PyTuple_MaybeUntrack
1415
#include "pycore_tstate.h" // _PyThreadStateImpl
1516
#include "pycore_weakref.h" // _PyWeakref_ClearRef()
1617
#include "pydtrace.h"

Python/intrinsics.c

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "pycore_pyerrors.h" // _PyErr_SetString()
1111
#include "pycore_runtime.h" // _Py_ID()
1212
#include "pycore_sysmodule.h" // _PySys_GetAttr()
13+
#include "pycore_tuple.h" // _PyTuple_FromArray()
1314
#include "pycore_typevarobject.h" // _Py_make_typevar()
1415

1516

Python/optimizer.c

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "pycore_opcode_utils.h" // MAX_REAL_OPCODE
77
#include "pycore_optimizer.h" // _Py_uop_analyze_and_optimize()
88
#include "pycore_pystate.h" // _PyInterpreterState_GET()
9+
#include "pycore_tuple.h" // _PyTuple_FromArraySteal()
910
#include "pycore_uop_ids.h"
1011
#include "pycore_jit.h"
1112
#include "cpython/optimizer.h"

0 commit comments

Comments
 (0)