Lines Matching defs:optind

86    Otherwise, `optind' communicates from one call to the next
90 int optind = 1;
147 The other is elements [last_nonopt,optind), which contains all
158 int top = d->optind;
228 d->__first_nonopt += (d->optind - d->__last_nonopt);
229 d->__last_nonopt = d->optind;
242 d->__first_nonopt = d->__last_nonopt = d->optind;
309 updating `optind' and `nextchar' so that the next call to `getopt' can
313 Then `optind' is the index in ARGV of the first ARGV-element
368 if (d->optind == 0 || !d->__initialized)
370 if (d->optind == 0)
371 d->optind = 1; /* Don't scan ARGV[0], the program name. */
377 /* Test whether ARGV[optind] points to a non-option argument.
382 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \
383 || (d->optind < d->__nonoption_flags_len \
384 && __getopt_nonoption_flags[d->optind] == '1'))
386 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')
395 if (d->__last_nonopt > d->optind)
396 d->__last_nonopt = d->optind;
397 if (d->__first_nonopt > d->optind)
398 d->__first_nonopt = d->optind;
406 && d->__last_nonopt != d->optind)
408 else if (d->__last_nonopt != d->optind)
409 d->__first_nonopt = d->optind;
414 while (d->optind < argc && NONOPTION_P)
415 d->optind++;
416 d->__last_nonopt = d->optind;
424 if (d->optind != argc && !strcmp (argv[d->optind], "--"))
426 d->optind++;
429 && d->__last_nonopt != d->optind)
432 d->__first_nonopt = d->optind;
435 d->optind = argc;
441 if (d->optind == argc)
446 d->optind = d->__first_nonopt;
457 d->optarg = argv[d->optind++];
464 d->__nextchar = (argv[d->optind] + 1
465 + (longopts != NULL && argv[d->optind][1] == '-'));
484 && (argv[d->optind][1] == '-'
485 || (long_only && (argv[d->optind][2]
486 || !strchr (optstring, argv[d->optind][1])))))
535 argv[0], argv[d->optind]) >= 0)
551 argv[0], argv[d->optind]);
555 d->optind++;
563 d->optind++;
579 if (argv[d->optind - 1][1] == '-')
598 argv[0], argv[d->optind - 1][0],
603 argv[0], argv[d->optind - 1][0],
635 if (d->optind < argc)
636 d->optarg = argv[d->optind++];
646 argv[0], argv[d->optind - 1]) >= 0)
664 argv[0], argv[d->optind - 1]);
687 if (!long_only || argv[d->optind][1] == '-'
697 if (argv[d->optind][1] == '-')
713 argv[0], argv[d->optind][0], d->__nextchar);
716 argv[0], argv[d->optind][0], d->__nextchar);
738 d->optind++;
750 /* Increment `optind' when we start to process its last character. */
752 ++d->optind;
820 d->optind++;
822 else if (d->optind == argc)
859 /* We already incremented `d->optind' once;
861 d->optarg = argv[d->optind++];
901 argv[0], argv[d->optind]) >= 0)
917 argv[0], argv[d->optind]);
921 d->optind++;
970 if (d->optind < argc)
971 d->optarg = argv[d->optind++];
981 argv[0], argv[d->optind - 1]) >= 0)
999 argv[0], argv[d->optind - 1]);
1027 d->optind++;
1041 d->optind++;
1043 else if (d->optind == argc)
1080 /* We already incremented `optind' once;
1082 d->optarg = argv[d->optind++];
1097 getopt_data.optind = optind;
1103 optind = getopt_data.optind;
1140 int this_option_optind = optind ? optind : 1;
1184 if (optind < argc)
1187 while (optind < argc)
1188 printf ("%s ", argv[optind++]);