diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-01 13:22:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 13:22:52 (GMT) |
commit | 1a9f0d8efded4bf37c864ed572beff28c43c7c77 (patch) | |
tree | 5ead40c23d01803d041465871c24e39cfcc48b37 /Include/internal | |
parent | 2fc936ed24cf04ed32f6015a8aa78c8ea40da66b (diff) | |
download | cpython-1a9f0d8efded4bf37c864ed572beff28c43c7c77.zip cpython-1a9f0d8efded4bf37c864ed572beff28c43c7c77.tar.gz cpython-1a9f0d8efded4bf37c864ed572beff28c43c7c77.tar.bz2 |
bpo-36763: Add _PyCoreConfig_SetString() (GH-13035)
Add 3 new config methods:
* _PyCoreConfig_SetString()
* _PyCoreConfig_SetWideString()
* _PyCoreConfig_SetWideStringFromString()
Changes:
* _PyCoreConfig_Copy() returns _PyInitError.
* Add CONFIG_GET_ENV_DUP().
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_coreconfig.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Include/internal/pycore_coreconfig.h b/Include/internal/pycore_coreconfig.h index b1d02ee..8af310d 100644 --- a/Include/internal/pycore_coreconfig.h +++ b/Include/internal/pycore_coreconfig.h @@ -102,16 +102,24 @@ PyAPI_FUNC(_PyInitError) _PyPreConfig_Write(_PyPreConfig *config); /* --- _PyCoreConfig ---------------------------------------------- */ PyAPI_FUNC(void) _PyCoreConfig_Clear(_PyCoreConfig *); -PyAPI_FUNC(int) _PyCoreConfig_Copy( +PyAPI_FUNC(_PyInitError) _PyCoreConfig_Copy( _PyCoreConfig *config, const _PyCoreConfig *config2); +PyAPI_FUNC(_PyInitError) _PyCoreConfig_SetString( + char **config_str, + const char *str); +PyAPI_FUNC(_PyInitError) _PyCoreConfig_SetWideString( + wchar_t **config_str, + const wchar_t *str); +PyAPI_FUNC(_PyInitError) _PyCoreConfig_SetWideStringFromString( + wchar_t **config_str, + const char *str); PyAPI_FUNC(_PyInitError) _PyCoreConfig_InitPathConfig(_PyCoreConfig *config); PyAPI_FUNC(_PyInitError) _PyCoreConfig_SetPathConfig( const _PyCoreConfig *config); PyAPI_FUNC(_PyInitError) _PyCoreConfig_Read(_PyCoreConfig *config); PyAPI_FUNC(void) _PyCoreConfig_Write(const _PyCoreConfig *config, _PyRuntimeState *runtime); - PyAPI_FUNC(_PyInitError) _PyCoreConfig_SetPyArgv( _PyCoreConfig *config, const _PyArgv *args); |