Lines Matching refs:optchr
28 static int php_opt_error(int argc, char * const *argv, int optint, int optchr, int err, int show_er… in php_opt_error() argument
32 fprintf(stderr, "Error in argument %d, char %d: ", optint, optchr+1); in php_opt_error()
39 fprintf(stderr, "option not found %c\n", argv[optint][optchr]); in php_opt_error()
42 fprintf(stderr, "no argument for option %c\n", argv[optint][optchr]); in php_opt_error()
57 static int optchr = 0; in php_getopt() local
65 optchr = 0; in php_getopt()
111 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
117 optchr = 0; in php_getopt()
123 optchr = 1; in php_getopt()
126 if (argv[*optind][optchr] == ':') { in php_getopt()
129 return (php_opt_error(argc, argv, *optind-1, optchr, OPTERRCOLON, show_err)); in php_getopt()
131 arg_start = 1 + optchr; in php_getopt()
138 int errchr = optchr; in php_getopt()
140 if (!argv[*optind][optchr+1]) { in php_getopt()
144 optchr++; in php_getopt()
148 } else if (argv[*optind][optchr] == opts[php_optidx].opt_char) { in php_getopt()
162 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
180 if (!argv[*optind][optchr+1]) in php_getopt()
185 optchr++; in php_getopt()