Skip to content

gh-131238: Cleanup pycore_runtime.h includes #131486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Include/internal/pycore_emscripten_trampoline.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 1 addition & 3 deletions Include/internal/pycore_long.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions Include/internal/pycore_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion Include/internal/pycore_pylifecycle.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion Include/internal/pycore_unicodeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ----------------------------------------------- */

Expand Down
Loading