mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-36763: Cleanup precmdline in _PyCoreConfig_Read() (GH-13371)
precmdline is only needed in _PyCoreConfig_Read(), not in config_read_cmdline(). Reorganize _PyCoreConfig_Read().
This commit is contained in:
parent
aee19f54f6
commit
870b035bc6
4 changed files with 54 additions and 47 deletions
|
@ -41,7 +41,7 @@ int _PyOS_opterr = 1; /* generate error messages */
|
|||
Py_ssize_t _PyOS_optind = 1; /* index into argv array */
|
||||
const wchar_t *_PyOS_optarg = NULL; /* optional argument */
|
||||
|
||||
static wchar_t *opt_ptr = L"";
|
||||
static const wchar_t *opt_ptr = L"";
|
||||
|
||||
/* Python command line short and long options */
|
||||
|
||||
|
@ -61,7 +61,7 @@ void _PyOS_ResetGetOpt(void)
|
|||
opt_ptr = L"";
|
||||
}
|
||||
|
||||
int _PyOS_GetOpt(Py_ssize_t argc, wchar_t **argv, int *longindex)
|
||||
int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex)
|
||||
{
|
||||
wchar_t *ptr;
|
||||
wchar_t option;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue