Home
last modified time | relevance | path

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

/external/python/cpython3/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.c2399 && _PyOS_optind < argv->length in config_parse_cmdline()
2400 && wcscmp(argv->items[_PyOS_optind], L"-") != 0 in config_parse_cmdline()
2403 config->run_filename = _PyMem_RawWcsdup(argv->items[_PyOS_optind]); in config_parse_cmdline()
2411 _PyOS_optind--; in config_parse_cmdline()
2414 *opt_index = _PyOS_optind; in config_parse_cmdline()
/external/python/cpython2/Python/
Dgetopt.c38 int _PyOS_optind = 1; /* index into argv array */ variable
45 _PyOS_optind = 1; in _PyOS_ResetGetOpt()
57 if (_PyOS_optind >= argc) in _PyOS_GetOpt()
60 else if (strcmp(argv[_PyOS_optind], "/?") == 0) { in _PyOS_GetOpt()
61 ++_PyOS_optind; in _PyOS_GetOpt()
66 else if (argv[_PyOS_optind][0] != '-' || in _PyOS_GetOpt()
67 argv[_PyOS_optind][1] == '\0' /* lone dash */ ) in _PyOS_GetOpt()
70 else if (strcmp(argv[_PyOS_optind], "--") == 0) { in _PyOS_GetOpt()
71 ++_PyOS_optind; in _PyOS_GetOpt()
75 else if (strcmp(argv[_PyOS_optind], "--help") == 0) { in _PyOS_GetOpt()
[all …]
/external/python/cpython2/Modules/
Dmain.c490 if (command == NULL && module == NULL && _PyOS_optind < argc && in Py_Main()
491 strcmp(argv[_PyOS_optind], "-") != 0) in Py_Main()
494 filename = decc$translate_vms(argv[_PyOS_optind]); in Py_Main()
496 filename = argv[_PyOS_optind]; in Py_Main()
499 filename = argv[_PyOS_optind]; in Py_Main()
568 _PyOS_optind--; in Py_Main()
569 argv[_PyOS_optind] = "-c"; in Py_Main()
577 _PyOS_optind--; in Py_Main()
578 argv[_PyOS_optind] = "-c"; in Py_Main()
581 PySys_SetArgv(argc-_PyOS_optind, argv+_PyOS_optind); in Py_Main()
/external/python/cpython2/Include/
Dpygetopt.h9 PyAPI_DATA(int) _PyOS_optind;
/external/python/cpython3/Include/internal/
Dpycore_getopt.h9 extern Py_ssize_t _PyOS_optind;
/external/python/cpython2/PC/os2emx/
Dpython27.def1153 "_PyOS_optind"
/external/python/cpython3/Doc/data/
Dpython3.10.abi18671 …<var-decl name='_PyOS_optind' type-id='type-id-31' visibility='default' filepath='./Include/intern…