diff options
| author | Victor Stinner <vstinner@redhat.com> | 2019-03-23 12:05:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-23 12:05:43 +0100 |
| commit | 6d5ee973f0600a3a9444f569dcf0dd346bfa2a11 (patch) | |
| tree | d10610b71d1dbff047e5ed912d82bff298e45537 /Include | |
| parent | 2b75155590eb42d25e474b776ee9fdcc4b3dc840 (diff) | |
| download | cpython-git-6d5ee973f0600a3a9444f569dcf0dd346bfa2a11.tar.gz | |
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 911e7ee33b..27c6eea6aa 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; |
