cpython/Include/internal
Victor Stinner 74f6568bbd
bpo-36301: Add _PyWstrList structure (GH-12343)
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
2019-03-15 15:08:05 +01:00
..
pycore_accu.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_atomic.h Fix the Py_atomic_* macros. (#12240) 2019-03-08 12:06:56 -07:00
pycore_ceval.h bpo-33608: Minor cleanup related to pending calls. (gh-12247) 2019-03-08 22:47:07 -07:00
pycore_condvar.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_context.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_coreconfig.h bpo-36301: Add _PyWstrList structure (GH-12343) 2019-03-15 15:08:05 +01:00
pycore_fileutils.h bpo-36142: Add preconfig.c (GH-12128) 2019-03-01 17:52:56 +01:00
pycore_getopt.h bpo-36301: Add _PyWstrList structure (GH-12343) 2019-03-15 15:08:05 +01:00
pycore_gil.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_hamt.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_object.h bpo-35059: Add _PyObject_CAST() macro (GH-10645) 2018-11-22 02:57:29 +01:00
pycore_pathconfig.h bpo-36301: Add _PyWstrList structure (GH-12343) 2019-03-15 15:08:05 +01:00
pycore_pyhash.h bpo-35081: Rename internal headers (GH-10275) 2018-11-12 16:53:38 +01:00
pycore_pylifecycle.h bpo-1054041: Exit properly after an uncaught ^C. (#11862) 2019-02-16 12:57:40 -08:00
pycore_pymem.h bpo-36142: Add _PyPreConfig_SetAllocator() (GH-12187) 2019-03-06 01:13:43 +01:00
pycore_pystate.h bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245) 2019-03-08 23:44:33 -07:00
pycore_tupleobject.h bpo-36030: Add _PyTuple_FromArray() function (GH-11954) 2019-02-25 17:59:12 +01:00
pycore_warnings.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00