mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
bpo-32197: Try to fix a compiler error on OS X introduced in bpo-32030. (#4681)
* Revert "bpo-32030: _PyPathConfig_Init() sets home and program_name (#4673)" This reverts commitaf5a895073
. * Revert "bpo-32030: Fix config_get_program_name() on macOS (#4669)" This reverts commite23c06e2b0
. * Revert "bpo-32030: Add Python/pathconfig.c (#4668)" This reverts commit0ea395ae96
. * Revert "bpo-32030: Don't call _PyPathConfig_Fini() in Py_FinalizeEx() (#4667)" This reverts commitebac19dad6
. * Revert "bpo-32030: Fix Py_GetPath(): init program_name (#4665)" This reverts commit9ac3d88827
.
This commit is contained in:
parent
af5a895073
commit
13badcbc60
12 changed files with 426 additions and 457 deletions
|
@ -48,36 +48,9 @@ typedef struct {
|
|||
#endif
|
||||
/* Set by Py_SetPath(), or computed by _PyPathConfig_Init() */
|
||||
wchar_t *module_search_path;
|
||||
/* Python program name */
|
||||
wchar_t *program_name;
|
||||
/* Set by Py_SetPythonHome() or PYTHONHOME environment variable */
|
||||
wchar_t *home;
|
||||
} _PyPathConfig;
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
#define _PyPathConfig_INIT \
|
||||
{.program_full_path = NULL, \
|
||||
.prefix = NULL, \
|
||||
.dll_path = NULL, \
|
||||
.module_search_path = NULL, \
|
||||
.program_name = NULL, \
|
||||
.home = NULL}
|
||||
#else
|
||||
#define _PyPathConfig_INIT \
|
||||
{.program_full_path = NULL, \
|
||||
.prefix = NULL, \
|
||||
.exec_prefix = NULL, \
|
||||
.module_search_path = NULL, \
|
||||
.program_name = NULL, \
|
||||
.home = NULL}
|
||||
#endif
|
||||
|
||||
PyAPI_DATA(_PyPathConfig) _Py_path_config;
|
||||
|
||||
PyAPI_FUNC(_PyInitError) _PyPathConfig_Calculate(
|
||||
_PyPathConfig *config,
|
||||
const _PyMainInterpreterConfig *main_config);
|
||||
PyAPI_FUNC(void) _PyPathConfig_Clear(_PyPathConfig *config);
|
||||
#define _PyPathConfig_INIT {.module_search_path = NULL}
|
||||
|
||||
|
||||
/* Full Python runtime state */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue