mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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:
parent
276c234ce0
commit
bc02eac9d2
9 changed files with 611 additions and 583 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue