Home
last modified time | relevance | path

Searched refs:_PyOS_optind (Results 1 – 3 of 3) sorted by relevance

/third_party/python/Python/
Dgetopt.c37 Py_ssize_t _PyOS_optind = 1; /* index into argv array */ variable
55 _PyOS_optind = 1; in _PyOS_ResetGetOpt()
67 if (_PyOS_optind >= argc) in _PyOS_GetOpt()
70 else if (wcscmp(argv[_PyOS_optind], L"/?") == 0) { in _PyOS_GetOpt()
71 ++_PyOS_optind; in _PyOS_GetOpt()
76 else if (argv[_PyOS_optind][0] != L'-' || in _PyOS_GetOpt()
77 argv[_PyOS_optind][1] == L'\0' /* lone dash */ ) in _PyOS_GetOpt()
80 else if (wcscmp(argv[_PyOS_optind], L"--") == 0) { in _PyOS_GetOpt()
81 ++_PyOS_optind; in _PyOS_GetOpt()
85 else if (wcscmp(argv[_PyOS_optind], L"--help") == 0) { in _PyOS_GetOpt()
[all …]
Dinitconfig.c2459 && _PyOS_optind < argv->length in config_parse_cmdline()
2460 && wcscmp(argv->items[_PyOS_optind], L"-") != 0 in config_parse_cmdline()
2463 config->run_filename = _PyMem_RawWcsdup(argv->items[_PyOS_optind]); in config_parse_cmdline()
2471 _PyOS_optind--; in config_parse_cmdline()
2474 *opt_index = _PyOS_optind; in config_parse_cmdline()
/third_party/python/Include/internal/
Dpycore_getopt.h9 extern Py_ssize_t _PyOS_optind;