gh-131238: Remove pycore_runtime.h from pycore_pystate.h (#131356)

* Remove includes from pycore_pystate.h:

  * pycore_runtime_structs.h
  * pycore_runtime.h
  * pycore_tstate.h
  * pycore_interp.h

* Reorganize internal headers. Move _gc_thread_state from
  pycore_interp_structs.h to pycore_tstate.h.
* Add 3 new header files to PCbuild/pythoncore.vcxproj.
This commit is contained in:
Victor Stinner 2025-03-19 17:33:24 +01:00 committed by GitHub
parent 0a54bd6dd7
commit 4b54031323
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 46 additions and 28 deletions

View file

@ -38,14 +38,13 @@
#include "pycore_moduleobject.h" // _PyModule_GetState()
#include "pycore_pylifecycle.h" // _Py_IsInterpreterFinalizing()
#include "pycore_pystate.h" // _PyInterpreterState_GET
#include "pycore_unicodeobject.h" // _PyUnicode_WideCharString_Opt_Converter
#include "pycore_unicodeobject.h" // for Argument Clinic
#ifndef WINDOWS_LEAN_AND_MEAN
#define WINDOWS_LEAN_AND_MEAN
# define WINDOWS_LEAN_AND_MEAN
#endif
#include "windows.h"
#include <windows.h>
#include <winioctl.h>
#include <crtdbg.h>
#include "winreparse.h"