diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-14 12:26:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 12:26:24 (GMT) |
commit | 4a3fe0835310643193ea45529ab0fb45c5f8f2fd (patch) | |
tree | 6d112c3be1763e9185f805d19581347d1fc332ee /Objects | |
parent | 8ef875028a3644a329c87ce420a73793e315143f (diff) | |
download | cpython-4a3fe0835310643193ea45529ab0fb45c5f8f2fd.zip cpython-4a3fe0835310643193ea45529ab0fb45c5f8f2fd.tar.gz cpython-4a3fe0835310643193ea45529ab0fb45c5f8f2fd.tar.bz2 |
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.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/codeobject.c | 3 | ||||
-rw-r--r-- | Objects/interpreteridobject.c | 1 | ||||
-rw-r--r-- | Objects/longobject.c | 3 | ||||
-rw-r--r-- | Objects/moduleobject.c | 1 |
4 files changed, 6 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 1820d8c..7cb72ce 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -5,7 +5,8 @@ #include "opcode.h" #include "structmember.h" #include "pycore_code.h" -#include "pycore_pystate.h" +#include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs +#include "pycore_pystate.h" // _PyInterpreterState_GET_UNSAFE() #include "pycore_tupleobject.h" #include "clinic/codeobject.c.h" diff --git a/Objects/interpreteridobject.c b/Objects/interpreteridobject.c index 3f31687..84fd858 100644 --- a/Objects/interpreteridobject.c +++ b/Objects/interpreteridobject.c @@ -2,6 +2,7 @@ #include "Python.h" #include "pycore_abstract.h" // _PyIndex_Check() +#include "pycore_interp.h" // _PyInterpreterState_LookUpID() #include "pycore_pystate.h" #include "interpreteridobject.h" diff --git a/Objects/longobject.c b/Objects/longobject.c index a66e1c4..a0bb6bc 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -3,7 +3,8 @@ /* XXX The functional organization of this file is terrible */ #include "Python.h" -#include "pycore_pystate.h" /* _Py_IsMainInterpreter() */ +#include "pycore_interp.h" // _PY_NSMALLPOSINTS +#include "pycore_pystate.h" // _Py_IsMainInterpreter() #include "longintrepr.h" #include <float.h> diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 30adc92..acb920a 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c @@ -2,6 +2,7 @@ /* Module object implementation */ #include "Python.h" +#include "pycore_interp.h" // PyInterpreterState.importlib #include "pycore_pystate.h" #include "structmember.h" |