mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
bpo-36301: Add _Py_GetEnv() function (GH-12542)
* Make _PyPreConfig_GetEnv(), _PyCoreConfig_GetEnv() and _PyCoreConfig_GetEnvDup() private * _Py_get_env_flag() first parameter becomes "int use_environment"
This commit is contained in:
parent
548cb6060a
commit
f78a5e9ce8
4 changed files with 34 additions and 32 deletions
|
@ -76,15 +76,17 @@ PyAPI_FUNC(int) _Py_str_to_int(
|
|||
PyAPI_FUNC(const wchar_t*) _Py_get_xoption(
|
||||
const _PyWstrList *xoptions,
|
||||
const wchar_t *name);
|
||||
PyAPI_FUNC(const char*) _Py_GetEnv(
|
||||
int use_environment,
|
||||
const char *name);
|
||||
|
||||
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(const char*) _PyPreConfig_GetEnv(const _PyPreConfig *config,
|
||||
const char *name);
|
||||
PyAPI_FUNC(void) _Py_get_env_flag(_PyPreConfig *config,
|
||||
PyAPI_FUNC(void) _Py_get_env_flag(
|
||||
int use_environment,
|
||||
int *flag,
|
||||
const char *name);
|
||||
PyAPI_FUNC(_PyInitError) _PyPreConfig_Read(_PyPreConfig *config,
|
||||
|
@ -107,14 +109,6 @@ PyAPI_FUNC(_PyInitError) _PyCoreConfig_SetPathConfig(
|
|||
const _PyCoreConfig *config);
|
||||
PyAPI_FUNC(void) _PyCoreConfig_GetGlobalConfig(_PyCoreConfig *config);
|
||||
PyAPI_FUNC(void) _PyCoreConfig_SetGlobalConfig(const _PyCoreConfig *config);
|
||||
PyAPI_FUNC(const char*) _PyCoreConfig_GetEnv(
|
||||
const _PyCoreConfig *config,
|
||||
const char *name);
|
||||
PyAPI_FUNC(int) _PyCoreConfig_GetEnvDup(
|
||||
const _PyCoreConfig *config,
|
||||
wchar_t **dest,
|
||||
wchar_t *wname,
|
||||
char *name);
|
||||
PyAPI_FUNC(_PyInitError) _PyCoreConfig_Read(_PyCoreConfig *config);
|
||||
PyAPI_FUNC(_PyInitError) _PyCoreConfig_ReadFromArgv(_PyCoreConfig *config,
|
||||
const _PyArgv *args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue