]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131238: Cleanup pycore_runtime.h includes (#131486)
authorVictor Stinner <vstinner@python.org>
Thu, 20 Mar 2025 00:47:30 +0000 (01:47 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Mar 2025 00:47:30 +0000 (00:47 +0000)
Include/internal/pycore_emscripten_trampoline.h
Include/internal/pycore_long.h
Include/internal/pycore_object.h
Include/internal/pycore_pylifecycle.h
Include/internal/pycore_unicodeobject.h

index 5546ebbbfcb5c1c51e8c3190d03a58987846774b..7946eb5a74e974bf3c584c1f20f3338fce003b88 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef Py_EMSCRIPTEN_TRAMPOLINE_H
 #define Py_EMSCRIPTEN_TRAMPOLINE_H
 
-#include "pycore_runtime.h"  // _PyRuntimeState
+#include "pycore_typedefs.h"      // _PyRuntimeState
 
 /**
  * C function call trampolines to mitigate bad function pointer casts.
index 7b7f4e79ec653d6f0fde8b69c7f5ef0e3c58befa..ed6c435316708ed4fb2255f6e54f735d62dc1e1f 100644 (file)
@@ -9,9 +9,7 @@ extern "C" {
 #endif
 
 #include "pycore_bytesobject.h"   // _PyBytesWriter
-#include "pycore_runtime_structs.h"// _PY_NSMALLNEGINTS
-#include "pycore_global_objects.h"// _PY_SINGLETON
-#include "pycore_runtime.h"       // _PyRuntime
+#include "pycore_runtime.h"       // _Py_SINGLETON()
 
 /*
  * Default int base conversion size limitation: Denial of Service prevention.
index 931d9a2bb300c5ffdabeca176d95b8eaa477ee4f..08cbfe46b0daff917b21746ed085752ffde6e579 100644 (file)
@@ -13,6 +13,7 @@ extern "C" {
 #include "pycore_object_deferred.h" // _PyObject_HasDeferredRefcount
 #include "pycore_pyatomic_ft_wrappers.h"  // FT_ATOMIC_STORE_PTR_RELAXED
 #include "pycore_pystate.h"       // _PyInterpreterState_GET()
+#include "pycore_runtime.h"       // _PyRuntime
 #include "pycore_typeobject.h"    // _PyStaticType_GetState()
 #include "pycore_uniqueid.h"      // _PyObject_ThreadIncrefSlow()
 
index 53ffe7f8fecdba68004c1c05304bd463ade40be5..6e89ca33e4208c657b31a8d2448d66fa3d3e6d91 100644 (file)
@@ -8,7 +8,7 @@ extern "C" {
 #  error "this header requires Py_BUILD_CORE define"
 #endif
 
-#include "pycore_runtime.h"       // _PyRuntimeState
+#include "pycore_typedefs.h"      // _PyRuntimeState
 
 /* Forward declarations */
 struct _PyArgv;
index 34600ee6a9d1d44f903eac41685e40b757c3fdf7..5fea3247e8f68d30201704c05552b1fb3badb876 100644 (file)
@@ -10,7 +10,6 @@ extern "C" {
 
 #include "pycore_fileutils.h"     // _Py_error_handler
 #include "pycore_ucnhash.h"       // _PyUnicode_Name_CAPI
-#include "pycore_global_objects.h"  // _Py_SINGLETON
 
 /* --- Characters Type APIs ----------------------------------------------- */