• Victor Stinner's avatar
    bpo-36301: Add _PyWstrList structure (GH-12343) · 74f6568b
    Victor Stinner yazdı
    Replace messy _Py_wstrlist_xxx() functions with a new clean
    _PyWstrList structure and new _PyWstrList_xxx() functions.
    
    Changes:
    
    * Add _PyCoreConfig.use_module_search_paths to decide if
      _PyCoreConfig.module_search_paths should be computed or not, to
      support empty search path list.
    * _PyWstrList_Clear() sets length to 0 and items to NULL, whereas
      _Py_wstrlist_clear() only freed memory.
    * _PyWstrList_Append() returns an int, whereas _Py_wstrlist_append()
      returned _PyInitError.
    * _PyWstrList uses Py_ssize_t for the length, instead of int.
    * Replace (int, wchar_t**) with _PyWstrList in:
    
      * _PyPreConfig
      * _PyCoreConfig
      * _PyPreCmdline
      * _PyCmdline
    
    * Replace "int orig_argv; wchar_t **orig_argv;"
      with "_PyWstrList orig_argv".
    * _PyCmdline and _PyPreCmdline now also copy wchar_argv.
    * Rename _PyArgv_Decode() to _PyArgv_AsWstrList().
    * PySys_SetArgvEx() now pass the fixed (argc, argv) to
      _PyPathConfig_ComputeArgv0() (don't pass negative argc or NULL
      argv).
    * _PyOS_GetOpt() uses Py_ssize_t
    74f6568b
Adı
Son kayıt (commit)
Son güncelleme
.azure-pipelines Loading commit data...
.github Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...