mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
bpo-40268: Include explicitly pycore_interp.h (GH-19505)
pycore_pystate.h no longer includes pycore_interp.h: it's now included explicitly in files accessing PyInterpreterState.
This commit is contained in:
parent
8ef875028a
commit
4a3fe08353
19 changed files with 31 additions and 13 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_interp.h" // PyInterpreterState.warnings
|
||||
#include "pycore_pyerrors.h"
|
||||
#include "pycore_pystate.h"
|
||||
#include "frameobject.h"
|
||||
|
|
|
@ -9,6 +9,7 @@ Copyright (c) Corporation for National Research Initiatives.
|
|||
------------------------------------------------------------------------ */
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_interp.h" // PyInterpreterState.codec_search_path
|
||||
#include "pycore_pystate.h"
|
||||
#include "ucnhash.h"
|
||||
#include <ctype.h>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
/* Support for dynamic loading of extension modules */
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_interp.h" // _PyInterpreterState.dlopenflags
|
||||
#include "pycore_pystate.h" // _PyInterpreterState_GET_UNSAFE()
|
||||
#include "importdl.h"
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "pycore_pyhash.h"
|
||||
#include "pycore_pylifecycle.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_interp.h" // _PyInterpreterState_ClearModules()
|
||||
#include "pycore_pystate.h"
|
||||
#include "pycore_sysmodule.h"
|
||||
#include "errcode.h"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "pycore_fileutils.h"
|
||||
#include "pycore_getopt.h"
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_interp.h" // _PyInterpreterState.runtime
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_pyerrors.h"
|
||||
#include "pycore_pylifecycle.h"
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_getopt.h"
|
||||
#include "pycore_pystate.h" /* _PyRuntime_Initialize() */
|
||||
#include <locale.h> /* setlocale() */
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_pymem.h" // _PyMem_GetAllocatorName()
|
||||
#include "pycore_pystate.h" // _PyRuntime_Initialize()
|
||||
#include <locale.h> // setlocale()
|
||||
|
||||
|
||||
#define DECODE_LOCALE_ERR(NAME, LEN) \
|
||||
|
|
|
@ -17,7 +17,9 @@ Data members:
|
|||
#include "Python.h"
|
||||
#include "code.h"
|
||||
#include "frameobject.h"
|
||||
#include "pycore_ceval.h"
|
||||
#include "pycore_ceval.h" // _Py_RecursionLimitLowerWaterMark()
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_tupleobject.h"
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_pyerrors.h"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "pycore_interp.h" // _PyInterpreterState.pythread_stacksize
|
||||
|
||||
/* This code implemented by Dag.Gruneau@elsa.preseco.comm.se */
|
||||
/* Fast NonRecursiveMutex support by Yakov Markovitch, markovitch@iso.ru */
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "pycore_interp.h" // _PyInterpreterState.pythread_stacksize
|
||||
|
||||
/* Posix threads interface */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue