diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-23 11:05:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-23 11:05:43 (GMT) |
commit | 6d5ee973f0600a3a9444f569dcf0dd346bfa2a11 (patch) | |
tree | d10610b71d1dbff047e5ed912d82bff298e45537 /Include | |
parent | 2b75155590eb42d25e474b776ee9fdcc4b3dc840 (diff) | |
download | cpython-6d5ee973f0600a3a9444f569dcf0dd346bfa2a11.zip cpython-6d5ee973f0600a3a9444f569dcf0dd346bfa2a11.tar.gz cpython-6d5ee973f0600a3a9444f569dcf0dd346bfa2a11.tar.bz2 |
bpo-36301: Add _PyRuntimeState.preconfig (GH-12506)
_PyPreConfig_Write() now writes the applied pre-configuration into
_PyRuntimeState.preconfig.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pystate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index 911e7ee..27c6eea 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -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; |