Lines Matching refs:index
17 gs->index = 1; in getopt_init_state()
29 gs->index); in __getopt()
32 if (gs->arg_index == 1 && argv[gs->index] && in __getopt()
33 !strcmp(argv[gs->index], "--")) { in __getopt()
34 gs->index++; in __getopt()
39 if (gs->index >= argc) in __getopt()
43 if (*argv[gs->index] != '-') in __getopt()
47 curopt = argv[gs->index][gs->arg_index]; in __getopt()
53 gs->index++; in __getopt()
77 if (argv[gs->index][gs->arg_index + 1]) { in __getopt()
79 gs->arg = argv[gs->index++] + gs->arg_index + 1; in __getopt()
83 if (gs->index + 1 == argc) { in __getopt()
86 gs->index++; in __getopt()
89 if (*argv[gs->index + 1] != '-') { in __getopt()
93 gs->index++; in __getopt()
94 gs->arg = argv[gs->index++]; in __getopt()
102 gs->index++; in __getopt()
106 if (argv[gs->index][gs->arg_index + 1]) { in __getopt()
108 gs->arg = argv[gs->index++] + gs->arg_index + 1; in __getopt()
113 gs->index++; in __getopt()
116 if (gs->index >= argc || argv[gs->index][0] == '-') { in __getopt()
123 gs->arg = argv[gs->index++]; in __getopt()