diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-05 01:01:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 01:01:27 (GMT) |
commit | cad1f747da47849ab5d8b0b881f7a0b94564d290 (patch) | |
tree | b66ed4ec4f2f26c08fde4989fbf2be680834973d /Include/internal | |
parent | 7e9ce4c89e9a34ff84a89831812bc8b42d37ac1f (diff) | |
download | cpython-cad1f747da47849ab5d8b0b881f7a0b94564d290.zip cpython-cad1f747da47849ab5d8b0b881f7a0b94564d290.tar.gz cpython-cad1f747da47849ab5d8b0b881f7a0b94564d290.tar.bz2 |
bpo-36142: Add _PyPreConfig structure (GH-12172)
* Add _PyPreConfig structure
* Move 'ignored' and 'use_environment' fields from _PyCoreConfig
to _PyPreConfig
* Add a new "_PyPreConfig preconfig;" field to _PyCoreConfig
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_coreconfig.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Include/internal/pycore_coreconfig.h b/Include/internal/pycore_coreconfig.h index 9f3a4c7..6469fca 100644 --- a/Include/internal/pycore_coreconfig.h +++ b/Include/internal/pycore_coreconfig.h @@ -34,6 +34,19 @@ PyAPI_FUNC(_PyInitError) _PyArgv_Decode(const _PyArgv *args, PyAPI_FUNC(void) _Py_ClearArgcArgv(void); PyAPI_FUNC(int) _Py_SetArgcArgv(int argc, wchar_t * const *argv); +/* --- _PyPreConfig ----------------------------------------------- */ + +PyAPI_FUNC(void) _PyPreConfig_Clear(_PyPreConfig *config); +PyAPI_FUNC(int) _PyPreConfig_Copy(_PyPreConfig *config, + const _PyPreConfig *config2); +PyAPI_FUNC(void) _PyPreConfig_GetGlobalConfig(_PyPreConfig *config); +PyAPI_FUNC(void) _PyPreConfig_SetGlobalConfig(const _PyPreConfig *config); +PyAPI_FUNC(_PyInitError) _PyPreConfig_Read(_PyPreConfig *config); +PyAPI_FUNC(int) _PyPreConfig_AsDict(const _PyPreConfig *config, + PyObject *dict); + + + /* --- _PyCoreConfig ---------------------------------------------- */ PyAPI_FUNC(_PyInitError) _PyCoreConfig_Read(_PyCoreConfig *config); |