File tree 16 files changed +27
-31
lines changed
16 files changed +27
-31
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "dynamic_annotations.h"
12
-
11
+ #include "dynamic_annotations.h" /* _Py_ANNOTATE_MEMORY_ORDER */
13
12
#include "pyconfig.h"
14
13
15
14
#if defined(HAVE_STD_ATOMIC )
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "pycore_atomic.h"
12
- #include "pycore_pystate.h"
13
- #include "pythread.h"
11
+ /* Forward declarations */
12
+ typedef struct pyruntimestate _PyRuntimeState ;
13
+ struct _ceval_runtime_state ;
14
14
15
15
PyAPI_FUNC (void ) _Py_FinishPendingCalls (_PyRuntimeState * runtime );
16
16
PyAPI_FUNC (void ) _PyEval_Initialize (struct _ceval_runtime_state * );
Original file line number Diff line number Diff line change 5
5
# error "this header requires Py_BUILD_CORE define"
6
6
#endif
7
7
8
- #include "pycore_hamt.h"
8
+ #include "pycore_hamt.h" /* PyHamtObject */
9
9
10
10
struct _pycontextobject {
11
11
PyObject_HEAD
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "pycore_condvar .h"
12
- #include "pycore_atomic .h"
11
+ #include "pycore_atomic .h" /* _Py_atomic_address */
12
+ #include "pycore_condvar .h" /* PyCOND_T */
13
13
14
14
#ifndef Py_HAVE_CONDVAR
15
15
# error You need either a POSIX-compatible or a Windows system!
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "pycore_pystate.h" /* _PyRuntimeState */
11
+ /* Forward declaration */
12
+ typedef struct pyruntimestate _PyRuntimeState ;
12
13
13
14
/* --- PyStatus ----------------------------------------------- */
14
15
@@ -60,7 +61,7 @@ PyAPI_FUNC(PyObject*) _PyWideStringList_AsList(const PyWideStringList *list);
60
61
61
62
/* --- _PyArgv ---------------------------------------------------- */
62
63
63
- typedef struct {
64
+ typedef struct _PyArgv {
64
65
Py_ssize_t argc ;
65
66
int use_bytes_argv ;
66
67
char * const * bytes_argv ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "pycore_pystate.h" /* _PyRuntime */
11
+ #include "pycore_pystate.h" /* _PyRuntime.gc */
12
12
13
13
PyAPI_FUNC (int ) _PyType_CheckConsistency (PyTypeObject * type );
14
14
PyAPI_FUNC (int ) _PyUnicode_CheckConsistency (PyObject * op , int check_content );
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "pycore_initconfig.h" /* _PyArgv */
12
- #include "pycore_pystate.h" /* _PyRuntimeState */
11
+ /* Forward declarations */
12
+ typedef struct _PyArgv _PyArgv ;
13
+ typedef struct pyruntimestate _PyRuntimeState ;
13
14
14
15
/* True if the main interpreter thread exited due to an unhandled
15
16
* KeyboardInterrupt exception, suggesting the user pressed ^C. */
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "objimpl.h"
12
- #include "pymem.h"
11
+ #include "pymem.h" /* PyMemAllocatorName */
13
12
14
13
15
14
/* GC runtime state */
Original file line number Diff line number Diff line change @@ -8,16 +8,9 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "cpython/initconfig.h"
12
- #include "fileobject.h"
13
- #include "pystate.h"
14
- #include "pythread.h"
15
- #include "sysmodule.h"
16
-
17
- #include "pycore_gil.h" /* _gil_runtime_state */
18
- #include "pycore_pathconfig.h"
19
- #include "pycore_pymem.h"
20
- #include "pycore_warnings.h"
11
+ #include "pycore_gil.h" /* struct _gil_runtime_state */
12
+ #include "pycore_pymem.h" /* struct _gc_runtime_state */
13
+ #include "pycore_warnings.h" /* struct _warnings_runtime_state */
21
14
22
15
23
16
/* ceval state */
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "pystate.h" /* PyInterpreterState */
11
+ /* Forward declaration */
12
+ typedef struct _is PyInterpreterState ;
12
13
13
14
/* Write the Python traceback into the file 'fd'. For example:
14
15
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "tupleobject.h"
11
+ #include "tupleobject.h" /* _PyTuple_CAST() */
12
12
13
13
#define _PyTuple_ITEMS (op ) (_PyTuple_CAST(op)->ob_item)
14
14
PyAPI_FUNC (PyObject * ) _PyTuple_FromArray (PyObject * const * , Py_ssize_t );
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "object.h"
12
-
13
11
struct _warnings_runtime_state {
14
12
/* Both 'filters' and 'onceregistry' can be set in warnings.py;
15
13
get_warnings_attr() will reset these variables accordingly. */
Original file line number Diff line number Diff line change 2
2
3
3
#include "Python.h"
4
4
#include "pycore_initconfig.h"
5
+ #include "pycore_pathconfig.h"
5
6
#include "pycore_pylifecycle.h"
6
7
#include "pycore_pymem.h"
7
8
#include "pycore_pystate.h"
Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
40
40
41
41
#define PY_SSIZE_T_CLEAN
42
42
#include "Python.h"
43
- #include "pycore_initconfig.h"
44
43
#include "pycore_fileutils.h"
44
+ #include "pycore_initconfig.h"
45
45
#include "pycore_object.h"
46
+ #include "pycore_pathconfig.h"
46
47
#include "pycore_pylifecycle.h"
47
48
#include "pycore_pystate.h"
48
49
#include "ucnhash.h"
Original file line number Diff line number Diff line change 80
80
81
81
82
82
#include "Python.h"
83
- #include "pycore_initconfig.h"
83
+ #include "pycore_initconfig.h" /* PyStatus */
84
+ #include "pycore_pathconfig.h" /* _PyPathConfig */
84
85
#include "pycore_pystate.h"
85
86
#include "osdefs.h"
86
87
#include <wchar.h>
Original file line number Diff line number Diff line change 4
4
5
5
#include "Python-ast.h"
6
6
#undef Yield /* undefine macro conflicting with <winbase.h> */
7
+ #include "pycore_initconfig.h"
7
8
#include "pycore_pyerrors.h"
8
9
#include "pycore_pyhash.h"
9
10
#include "pycore_pylifecycle.h"
You can’t perform that action at this time.
0 commit comments