Skip to content

Commit 6c776ab

Browse files
authored
gh-131238: Cleanup pycore_runtime.h includes (#131486)
1 parent 344f3c3 commit 6c776ab

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

Include/internal/pycore_emscripten_trampoline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef Py_EMSCRIPTEN_TRAMPOLINE_H
22
#define Py_EMSCRIPTEN_TRAMPOLINE_H
33

4-
#include "pycore_runtime.h" // _PyRuntimeState
4+
#include "pycore_typedefs.h" // _PyRuntimeState
55

66
/**
77
* C function call trampolines to mitigate bad function pointer casts.

Include/internal/pycore_long.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ extern "C" {
99
#endif
1010

1111
#include "pycore_bytesobject.h" // _PyBytesWriter
12-
#include "pycore_runtime_structs.h"// _PY_NSMALLNEGINTS
13-
#include "pycore_global_objects.h"// _PY_SINGLETON
14-
#include "pycore_runtime.h" // _PyRuntime
12+
#include "pycore_runtime.h" // _Py_SINGLETON()
1513

1614
/*
1715
* Default int base conversion size limitation: Denial of Service prevention.

Include/internal/pycore_object.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ extern "C" {
1313
#include "pycore_object_deferred.h" // _PyObject_HasDeferredRefcount
1414
#include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_STORE_PTR_RELAXED
1515
#include "pycore_pystate.h" // _PyInterpreterState_GET()
16+
#include "pycore_runtime.h" // _PyRuntime
1617
#include "pycore_typeobject.h" // _PyStaticType_GetState()
1718
#include "pycore_uniqueid.h" // _PyObject_ThreadIncrefSlow()
1819

Include/internal/pycore_pylifecycle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11-
#include "pycore_runtime.h" // _PyRuntimeState
11+
#include "pycore_typedefs.h" // _PyRuntimeState
1212

1313
/* Forward declarations */
1414
struct _PyArgv;

Include/internal/pycore_unicodeobject.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ extern "C" {
1010

1111
#include "pycore_fileutils.h" // _Py_error_handler
1212
#include "pycore_ucnhash.h" // _PyUnicode_Name_CAPI
13-
#include "pycore_global_objects.h" // _Py_SINGLETON
1413

1514
/* --- Characters Type APIs ----------------------------------------------- */
1615

0 commit comments

Comments
 (0)