bpo-36876: Moved Parser/listnode.c statics to interpreter state. (GH-16328)

This commit is contained in:
Vinay Sajip 2019-11-07 10:08:58 +00:00 committed by GitHub
parent 7f460494d2
commit 9def81aa52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 10 deletions

View file

@ -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);