Lines Matching refs:_PyOS_optind
38 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()
76 ++_PyOS_optind; in _PyOS_GetOpt()
80 else if (strcmp(argv[_PyOS_optind], "--version") == 0) { in _PyOS_GetOpt()
81 ++_PyOS_optind; in _PyOS_GetOpt()
86 opt_ptr = &argv[_PyOS_optind++][1]; in _PyOS_GetOpt()
119 if (_PyOS_optind >= argc) { in _PyOS_GetOpt()
126 _PyOS_optarg = argv[_PyOS_optind++]; in _PyOS_GetOpt()