https://github.com/python/cpython/commit/6c776abb90be09d2b9e53d9b06b56a2e7004b57c commit: 6c776abb90be09d2b9e53d9b06b56a2e7004b57c branch: main author: Victor Stinner <vstin...@python.org> committer: vstinner <vstin...@python.org> date: 2025-03-20T00:47:30Z summary:
gh-131238: Cleanup pycore_runtime.h includes (#131486) files: M Include/internal/pycore_emscripten_trampoline.h M Include/internal/pycore_long.h M Include/internal/pycore_object.h M Include/internal/pycore_pylifecycle.h M Include/internal/pycore_unicodeobject.h diff --git a/Include/internal/pycore_emscripten_trampoline.h b/Include/internal/pycore_emscripten_trampoline.h index 5546ebbbfcb5c1..7946eb5a74e974 100644 --- a/Include/internal/pycore_emscripten_trampoline.h +++ b/Include/internal/pycore_emscripten_trampoline.h @@ -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. diff --git a/Include/internal/pycore_long.h b/Include/internal/pycore_long.h index 7b7f4e79ec653d..ed6c435316708e 100644 --- a/Include/internal/pycore_long.h +++ b/Include/internal/pycore_long.h @@ -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. diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h index 931d9a2bb300c5..08cbfe46b0daff 100644 --- a/Include/internal/pycore_object.h +++ b/Include/internal/pycore_object.h @@ -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() diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index 53ffe7f8fecdba..6e89ca33e4208c 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -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; diff --git a/Include/internal/pycore_unicodeobject.h b/Include/internal/pycore_unicodeobject.h index 34600ee6a9d1d4..5fea3247e8f68d 100644 --- a/Include/internal/pycore_unicodeobject.h +++ b/Include/internal/pycore_unicodeobject.h @@ -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 ----------------------------------------------- */ _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com