mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-40268: Remove a few pycore_pystate.h includes (GH-19510)
This commit is contained in:
parent
e1945307d3
commit
e5014be049
56 changed files with 78 additions and 86 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_tupleobject.h"
|
||||
#include "structmember.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
#define PY_SSIZE_T_CLEAN
|
||||
#include "Python.h"
|
||||
#include "pycore_object.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "structmember.h"
|
||||
#include "pythread.h"
|
||||
#include "_iomodule.h"
|
||||
|
|
|
|||
|
|
@ -8,8 +8,9 @@
|
|||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "Python.h"
|
||||
#include "pycore_interp.h" // PyInterpreterState.fs_codec
|
||||
#include "pycore_object.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_pystate.h" // _PyInterpreterState_GET()
|
||||
#include "structmember.h"
|
||||
#include "_iomodule.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_pylifecycle.h"
|
||||
#include "pycore_interp.h" // _PyInterpreterState.num_threads
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_pystate.h" // _PyThreadState_Init()
|
||||
#include "pythread.h"
|
||||
#include <stddef.h> // offsetof()
|
||||
|
||||
|
|
|
|||
|
|
@ -26,13 +26,14 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_context.h"
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_interp.h" // PyInterpreterState.gc
|
||||
#include "pycore_object.h"
|
||||
#include "pycore_pyerrors.h"
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "frameobject.h" /* for PyFrame_ClearFreeList */
|
||||
#include "frameobject.h" // PyFrame_ClearFreeList
|
||||
#include "pydtrace.h"
|
||||
#include "pytime.h" /* for _PyTime_GetMonotonicClock() */
|
||||
#include "pytime.h" // _PyTime_GetMonotonicClock()
|
||||
|
||||
typedef struct _gc_runtime_state GCState;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
/* Return the initial module search path. */
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_initconfig.h"
|
||||
#include "osdefs.h"
|
||||
#include "pycore_fileutils.h"
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "osdefs.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_pylifecycle.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_pystate.h" // _PyInterpreterState_GET()
|
||||
|
||||
/* Includes for exit_sigint() */
|
||||
#include <stdio.h> /* perror() */
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
#include "pycore_ceval.h" /* _PyEval_ReInitThreads() */
|
||||
#include "pycore_import.h" /* _PyImport_ReInitLock() */
|
||||
#include "pycore_pystate.h" /* _PyRuntime */
|
||||
#include "pycore_pystate.h" /* _PyInterpreterState_GET() */
|
||||
#include "pythread.h"
|
||||
#include "structmember.h"
|
||||
#ifndef MS_WINDOWS
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#include "pycore_call.h"
|
||||
#include "pycore_ceval.h"
|
||||
#include "pycore_pyerrors.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
|
||||
#ifndef MS_WINDOWS
|
||||
#include "posixmodule.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue