bpo-46370: Move the static initializer for _PyRuntime to its own header file. (gh-30587)

https://bugs.python.org/issue46370
This commit is contained in:
Eric Snow 2022-01-13 15:54:36 -07:00 committed by GitHub
parent 276c234ce0
commit bc02eac9d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 611 additions and 583 deletions

View file

@ -148,21 +148,6 @@ typedef struct pyruntimestate {
PyInterpreterState _main_interpreter;
} _PyRuntimeState;
#define _PyThreadState_INIT \
{ \
._static = 1, \
}
#define _PyInterpreterState_INIT \
{ \
._static = 1, \
._initial_thread = _PyThreadState_INIT, \
}
#define _PyRuntimeState_INIT \
{ \
.global_objects = _Py_global_objects_INIT, \
._main_interpreter = _PyInterpreterState_INIT, \
}
/* other API */