summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2019-11-07 10:08:58 (GMT)
committerGitHub <noreply@github.com>2019-11-07 10:08:58 (GMT)
commit9def81aa52adc3cc89554156e40742cf17312825 (patch)
tree13b87d65449de478cef1183faa37c8508e9b4f5e /Include/internal
parent7f460494d2309ace004a400bae8fc59134dc325c (diff)
downloadcpython-9def81aa52adc3cc89554156e40742cf17312825.zip
cpython-9def81aa52adc3cc89554156e40742cf17312825.tar.gz
cpython-9def81aa52adc3cc89554156e40742cf17312825.tar.bz2
bpo-36876: Moved Parser/listnode.c statics to interpreter state. (GH-16328)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_pystate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h
index 91003db..eb44ae9 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -125,6 +125,15 @@ struct _is {
struct _warnings_runtime_state warnings;
PyObject *audit_hooks;
+/*
+ * See bpo-36876: miscellaneous ad hoc statics have been moved here.
+ */
+ struct {
+ struct {
+ int level;
+ int atbol;
+ } listnode;
+ } parser;
};
PyAPI_FUNC(struct _is*) _PyInterpreterState_LookUpID(PY_INT64_T);