File tree Expand file tree Collapse file tree 18 files changed +57
-48
lines changed Expand file tree Collapse file tree 18 files changed +57
-48
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
+ #include "pycore_frame.h" // _PyInterpreterFrame
12
+
11
13
#define _Py_UOP_MAX_TRACE_LENGTH 64
12
14
13
15
typedef struct {
Original file line number Diff line number Diff line change 5
5
#include "pycore_frame.h"
6
6
#include "pycore_function.h"
7
7
#include "pycore_global_objects.h"
8
- #include "pycore_intrinsics.h"
9
- #include "pycore_pyerrors.h"
10
- #include "pycore_runtime.h"
8
+ #include "pycore_intrinsics.h" // INTRINSIC_PRINT
9
+ #include "pycore_pyerrors.h" // _PyErr_SetString()
10
+ #include "pycore_runtime.h" // _Py_ID()
11
11
#include "pycore_sysmodule.h" // _PySys_GetAttr()
12
- #include "pycore_typevarobject.h"
12
+ #include "pycore_typevarobject.h" // _Py_make_typevar()
13
13
14
14
15
15
/******** Unary functions ********/
Original file line number Diff line number Diff line change 2
2
* Provides callables to forward PEP 669 events to legacy events.
3
3
*/
4
4
5
- #include <stddef.h>
6
5
#include "Python.h"
7
- #include "opcode.h"
8
- #include "pycore_ceval.h"
6
+ #include "pycore_ceval.h" // export _PyEval_SetProfile()
9
7
#include "pycore_object.h"
10
- #include "pycore_sysmodule.h"
8
+ #include "pycore_sysmodule.h" // _PySys_Audit()
9
+
10
+ #include "opcode.h"
11
+ #include <stddef.h>
11
12
12
13
typedef struct _PyLegacyEventHandler {
13
14
PyObject_HEAD
Original file line number Diff line number Diff line change 1
1
#include "Python.h"
2
2
#include "opcode.h"
3
3
#include "pycore_interp.h"
4
- #include "pycore_opcode_metadata.h"
5
- #include "pycore_opcode_utils.h"
6
- #include "pycore_optimizer.h"
4
+ #include "pycore_opcode_metadata.h" // _PyOpcode_OpName()
5
+ #include "pycore_opcode_utils.h" // MAX_REAL_OPCODE
6
+ #include "pycore_optimizer.h" // _Py_uop_analyze_and_optimize()
7
7
#include "pycore_pystate.h" // _PyInterpreterState_GET()
8
8
#include "pycore_uops.h"
9
9
#include "cpython/optimizer.h"
Original file line number Diff line number Diff line change 1
1
/* Path configuration like module_search_path (sys.path) */
2
2
3
3
#include "Python.h"
4
- #include "marshal.h" // PyMarshal_ReadObjectFromString
5
- #include "osdefs.h" // DELIM
6
- #include "pycore_initconfig.h"
7
- #include "pycore_fileutils.h"
4
+ #include "pycore_initconfig.h" // _PyStatus_OK()
5
+ #include "pycore_fileutils.h" // _Py_wgetcwd()
8
6
#include "pycore_pathconfig.h"
9
7
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
10
8
#include <wchar.h>
9
+
10
+ #include "marshal.h" // PyMarshal_ReadObjectFromString
11
+ #include "osdefs.h" // DELIM
12
+
11
13
#ifdef MS_WINDOWS
12
14
# include <windows.h> // GetFullPathNameW(), MAX_PATH
13
15
# include <pathcch.h>
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ any DWARF information available for them).
130
130
*/
131
131
132
132
#include "Python.h"
133
- #include "pycore_ceval.h"
133
+ #include "pycore_ceval.h" // _PyPerf_Callbacks
134
134
#include "pycore_frame.h"
135
135
#include "pycore_interp.h"
136
136
#include "pycore_pyerrors.h" // _PyErr_WriteUnraisableMsg()
Original file line number Diff line number Diff line change 17
17
#include "pycore_list.h" // _PyList_Fini()
18
18
#include "pycore_long.h" // _PyLong_InitTypes()
19
19
#include "pycore_object.h" // _PyDebug_PrintTotalRefs()
20
- #include "pycore_pathconfig.h" // _PyConfig_WritePathConfig ()
20
+ #include "pycore_pathconfig.h" // _PyPathConfig_UpdateGlobal ()
21
21
#include "pycore_pyerrors.h" // _PyErr_Occurred()
22
22
#include "pycore_pylifecycle.h" // _PyErr_Print()
23
23
#include "pycore_pymem.h" // _PyObject_DebugMallocStats()
32
32
#include "pycore_typevarobject.h" // _Py_clear_generic_types()
33
33
#include "pycore_unicodeobject.h" // _PyUnicode_InitTypes()
34
34
#include "pycore_weakref.h" // _PyWeakref_GET_REF()
35
+
35
36
#include "opcode.h"
36
37
37
38
#include <locale.h> // setlocale()
38
39
#include <stdlib.h> // getenv()
39
40
40
41
#if defined(__APPLE__ )
41
- #include <mach-o/loader.h>
42
+ # include <mach-o/loader.h>
42
43
#endif
43
44
44
45
#ifdef HAVE_SIGNAL_H
Original file line number Diff line number Diff line change 6
6
#include "pycore_code.h" // stats
7
7
#include "pycore_dtoa.h" // _dtoa_state_INIT()
8
8
#include "pycore_frame.h"
9
- #include "pycore_initconfig.h"
9
+ #include "pycore_initconfig.h" // _PyStatus_OK()
10
10
#include "pycore_object.h" // _PyType_InitCache()
11
- #include "pycore_pyerrors.h"
12
- #include "pycore_pylifecycle.h"
11
+ #include "pycore_pyerrors.h" // _PyErr_Clear()
12
+ #include "pycore_pylifecycle.h" // _PyAST_Fini()
13
13
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
14
14
#include "pycore_pystate.h"
15
15
#include "pycore_runtime_init.h" // _PyRuntimeState_INIT
Original file line number Diff line number Diff line change 3
3
#include <Python.h>
4
4
#include "pycore_dtoa.h" // _Py_dg_strtod()
5
5
#include "pycore_pymath.h" // _PY_SHORT_FLOAT_REPR
6
- #include <locale.h>
6
+
7
+ #include <locale.h> // localeconv()
7
8
8
9
/* Case-insensitive string match used for nan and inf detection; t should be
9
10
lower-case. Returns 1 for a successful match, 0 otherwise. */
Original file line number Diff line number Diff line change 12
12
13
13
#include "Python.h"
14
14
15
- #include "pycore_ast.h" // PyAST_mod2obj
16
- #include "pycore_ceval.h" // _Py_EnterRecursiveCall
15
+ #include "pycore_ast.h" // PyAST_mod2obj()
16
+ #include "pycore_ceval.h" // _Py_EnterRecursiveCall()
17
17
#include "pycore_compile.h" // _PyAST_Compile()
18
18
#include "pycore_interp.h" // PyInterpreterState.importlib
19
19
#include "pycore_object.h" // _PyDebug_PrintTotalRefs()
20
20
#include "pycore_parser.h" // _PyParser_ASTFromString()
21
- #include "pycore_pyerrors.h" // _PyErr_GetRaisedException, _Py_Offer_Suggestions
22
- #include "pycore_pylifecycle.h" // _Py_UnhandledKeyboardInterrupt
21
+ #include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
22
+ #include "pycore_pylifecycle.h" // _Py_FdIsInteractive()
23
23
#include "pycore_pystate.h" // _PyInterpreterState_GET()
24
- #include "pycore_pythonrun.h" // define _PyRun_InteractiveLoopObject()
24
+ #include "pycore_pythonrun.h" // export _PyRun_InteractiveLoopObject()
25
25
#include "pycore_sysmodule.h" // _PySys_Audit()
26
26
#include "pycore_traceback.h" // _PyTraceBack_Print_Indented()
27
27
You can’t perform that action at this time.
0 commit comments