diff options
author | Victor Stinner <vstinner@python.org> | 2019-10-04 17:53:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 17:53:43 (GMT) |
commit | c02b41b1fb115c87693530ea6a480b2e15460424 (patch) | |
tree | dd863614c77112d715aac8277083cdd8d119f905 /Include | |
parent | abd7cd856ba326bd7574135c7d034e98492ab695 (diff) | |
download | cpython-c02b41b1fb115c87693530ea6a480b2e15460424.zip cpython-c02b41b1fb115c87693530ea6a480b2e15460424.tar.gz cpython-c02b41b1fb115c87693530ea6a480b2e15460424.tar.bz2 |
bpo-38353: getpath.c: allocates strings on the heap (GH-16585)
* _Py_FindEnvConfigValue() now returns a string allocated
by PyMem_RawMalloc().
* calculate_init() now decodes VPATH macro.
* Add calculate_open_pyenv() function.
* Add substring() and joinpath2() functions.
* Fix add_exe_suffix()
And a few cleanup changes.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pathconfig.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Include/internal/pycore_pathconfig.h b/Include/internal/pycore_pathconfig.h index ce75cce..257c056 100644 --- a/Include/internal/pycore_pathconfig.h +++ b/Include/internal/pycore_pathconfig.h @@ -56,11 +56,10 @@ extern PyStatus _PyPathConfig_Calculate( extern int _PyPathConfig_ComputeSysPath0( const PyWideStringList *argv, PyObject **path0); -extern int _Py_FindEnvConfigValue( +extern PyStatus _Py_FindEnvConfigValue( FILE *env_file, const wchar_t *key, - wchar_t *value, - size_t value_size); + wchar_t **value_p); #ifdef MS_WINDOWS extern wchar_t* _Py_GetDLLPath(void); |