mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-36142: Add preconfig.c (GH-12128)
* Add _PyArgv_Decode() function * Move _Py_ClearFileSystemEncoding() and _Py_SetFileSystemEncoding() to preconfig.c.
This commit is contained in:
parent
c991f2415d
commit
91b9ecf82c
8 changed files with 115 additions and 87 deletions
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN defined"
|
||||
#endif
|
||||
|
||||
/* _Py_wstrlist */
|
||||
/* --- _Py_wstrlist ----------------------------------------------- */
|
||||
|
||||
PyAPI_FUNC(void) _Py_wstrlist_clear(
|
||||
int len,
|
||||
|
@ -24,12 +24,17 @@ PyAPI_FUNC(PyObject*) _Py_wstrlist_as_pylist(
|
|||
int len,
|
||||
wchar_t **list);
|
||||
|
||||
/* Py_GetArgcArgv() helpers */
|
||||
/* --- _PyArgv ---------------------------------------------------- */
|
||||
|
||||
PyAPI_FUNC(_PyInitError) _PyArgv_Decode(const _PyArgv *args,
|
||||
wchar_t*** argv_p);
|
||||
|
||||
/* --- Py_GetArgcArgv() helpers ----------------------------------- */
|
||||
|
||||
PyAPI_FUNC(void) _Py_ClearArgcArgv(void);
|
||||
PyAPI_FUNC(int) _Py_SetArgcArgv(int argc, wchar_t * const *argv);
|
||||
|
||||
/* _PyCoreConfig */
|
||||
/* --- _PyCoreConfig ---------------------------------------------- */
|
||||
|
||||
PyAPI_FUNC(_PyInitError) _PyCoreConfig_Read(_PyCoreConfig *config);
|
||||
PyAPI_FUNC(void) _PyCoreConfig_Clear(_PyCoreConfig *);
|
||||
|
|
|
@ -10,6 +10,8 @@ extern "C" {
|
|||
|
||||
#include <locale.h> /* struct lconv */
|
||||
|
||||
PyAPI_DATA(int) _Py_HasFileSystemDefaultEncodeErrors;
|
||||
|
||||
PyAPI_FUNC(int) _Py_DecodeUTF8Ex(
|
||||
const char *arg,
|
||||
Py_ssize_t arglen,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue