Searched refs:optind (Results 1 - 3 of 3) sorted by relevance

/PHP_TRUNK/ext/ereg/regex/
H A Dmain.c40 extern int optind;
73 if (optind >= argc) {
78 err = regcomp(&re, argv[optind++], copts);
87 if (optind >= argc) {
94 subs[0].rm_eo = strlen(argv[optind]) - endoff;
96 err = regexec(&re, argv[optind], (size_t)NS, subs, eopts);
108 argv[optind] + subs[0].rm_so);
111 argv[optind] + subs[0].rm_so);
117 argv[optind] + subs[i].rm_so);
/PHP_TRUNK/main/
H A Dgetopt.c58 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start) /* {{{ */ argument
65 if (*optind >= argc) {
69 if ((argv[*optind][0] != '-')) {
72 if (!argv[*optind][1])
82 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) {
84 int arg_end = strlen(argv[*optind])-1;
87 if (argv[*optind][2] == '\0') {
88 (*optind)++;
95 if ((pos = php_memnstr(&argv[*optind][arg_star
[all...]
H A Dphp_getopt.h28 As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg
31 #undef optind macro
45 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start);

Completed in 3 milliseconds