Lines Matching defs:optind

87    Otherwise, `optind' communicates from one call to the next
91 int optind = 1;
148 The other is elements [last_nonopt,optind), which contains all
159 int top = d->optind;
229 d->__first_nonopt += (d->optind - d->__last_nonopt);
230 d->__last_nonopt = d->optind;
243 d->__first_nonopt = d->__last_nonopt = d->optind;
310 updating `optind' and `nextchar' so that the next call to `getopt' can
314 Then `optind' is the index in ARGV of the first ARGV-element
369 if (d->optind == 0 || !d->__initialized)
371 if (d->optind == 0)
372 d->optind = 1; /* Don't scan ARGV[0], the program name. */
378 /* Test whether ARGV[optind] points to a non-option argument.
383 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \
384 || (d->optind < d->__nonoption_flags_len \
385 && __getopt_nonoption_flags[d->optind] == '1'))
387 # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')
396 if (d->__last_nonopt > d->optind)
397 d->__last_nonopt = d->optind;
398 if (d->__first_nonopt > d->optind)
399 d->__first_nonopt = d->optind;
407 && d->__last_nonopt != d->optind)
409 else if (d->__last_nonopt != d->optind)
410 d->__first_nonopt = d->optind;
415 while (d->optind < argc && NONOPTION_P)
416 d->optind++;
417 d->__last_nonopt = d->optind;
425 if (d->optind != argc && !strcmp (argv[d->optind], "--"))
427 d->optind++;
430 && d->__last_nonopt != d->optind)
433 d->__first_nonopt = d->optind;
436 d->optind = argc;
442 if (d->optind == argc)
447 d->optind = d->__first_nonopt;
458 d->optarg = argv[d->optind++];
465 d->__nextchar = (argv[d->optind] + 1
466 + (longopts != NULL && argv[d->optind][1] == '-'));
485 && (argv[d->optind][1] == '-'
486 || (long_only && (argv[d->optind][2]
487 || !strchr (optstring, argv[d->optind][1])))))
536 argv[0], argv[d->optind]) >= 0)
552 argv[0], argv[d->optind]);
556 d->optind++;
564 d->optind++;
580 if (argv[d->optind - 1][1] == '-')
599 argv[0], argv[d->optind - 1][0],
604 argv[0], argv[d->optind - 1][0],
636 if (d->optind < argc)
637 d->optarg = argv[d->optind++];
647 argv[0], argv[d->optind - 1]) >= 0)
665 argv[0], argv[d->optind - 1]);
688 if (!long_only || argv[d->optind][1] == '-'
698 if (argv[d->optind][1] == '-')
714 argv[0], argv[d->optind][0], d->__nextchar);
717 argv[0], argv[d->optind][0], d->__nextchar);
739 d->optind++;
751 /* Increment `optind' when we start to process its last character. */
753 ++d->optind;
821 d->optind++;
823 else if (d->optind == argc)
860 /* We already incremented `d->optind' once;
862 d->optarg = argv[d->optind++];
902 argv[0], argv[d->optind]) >= 0)
918 argv[0], argv[d->optind]);
922 d->optind++;
971 if (d->optind < argc)
972 d->optarg = argv[d->optind++];
982 argv[0], argv[d->optind - 1]) >= 0)
1000 argv[0], argv[d->optind - 1]);
1028 d->optind++;
1042 d->optind++;
1044 else if (d->optind == argc)
1081 /* We already incremented `optind' once;
1083 d->optarg = argv[d->optind++];
1098 getopt_data.optind = optind;
1104 optind = getopt_data.optind;
1141 int this_option_optind = optind ? optind : 1;
1185 if (optind < argc)
1188 while (optind < argc)
1189 printf ("%s ", argv[optind++]);