Lines Matching refs:optchr
31 static int php_opt_error(int argc, char * const *argv, int oint, int optchr, int err, int show_err)… in php_opt_error() argument
35 fprintf(stderr, "Error in argument %d, char %d: ", oint, optchr+1); in php_opt_error()
42 fprintf(stderr, "option not found %c\n", argv[oint][optchr]); in php_opt_error()
45 fprintf(stderr, "no argument for option %c\n", argv[oint][optchr]); in php_opt_error()
60 static int optchr = 0; in php_getopt() local
68 optchr = 0; in php_getopt()
114 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
120 optchr = 0; in php_getopt()
126 optchr = 1; in php_getopt()
129 if (argv[*optind][optchr] == ':') { in php_getopt()
132 return (php_opt_error(argc, argv, *optind-1, optchr, OPTERRCOLON, show_err)); in php_getopt()
134 arg_start = 1 + optchr; in php_getopt()
141 int errchr = optchr; in php_getopt()
143 if (!argv[*optind][optchr+1]) { in php_getopt()
147 optchr++; in php_getopt()
151 } else if (argv[*optind][optchr] == opts[php_optidx].opt_char) { in php_getopt()
165 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
183 if (!argv[*optind][optchr+1]) in php_getopt()
188 optchr++; in php_getopt()