mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-36301: Add _PyRuntimeState.preconfig (GH-12506)
_PyPreConfig_Write() now writes the applied pre-configuration into _PyRuntimeState.preconfig.
This commit is contained in:
parent
2b75155590
commit
6d5ee973f0
4 changed files with 36 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN define"
|
||||
#endif
|
||||
|
||||
#include "cpython/coreconfig.h"
|
||||
#include "pystate.h"
|
||||
#include "pythread.h"
|
||||
|
||||
|
|
@ -176,6 +177,7 @@ typedef struct pyruntimestate {
|
|||
struct _ceval_runtime_state ceval;
|
||||
struct _gilstate_runtime_state gilstate;
|
||||
|
||||
_PyPreConfig preconfig;
|
||||
// XXX Consolidate globals found via the check-c-globals script.
|
||||
} _PyRuntimeState;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue