Lines Matching refs:optchr
30 static int php_opt_error(int argc, char * const *argv, int oint, int optchr, int err, int show_err)… in php_opt_error() argument
34 fprintf(stderr, "Error in argument %d, char %d: ", oint, optchr+1); in php_opt_error()
41 fprintf(stderr, "option not found %c\n", argv[oint][optchr]); in php_opt_error()
44 fprintf(stderr, "no argument for option %c\n", argv[oint][optchr]); in php_opt_error()
59 static int optchr = 0; in php_getopt() local
67 optchr = 0; in php_getopt()
113 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
119 optchr = 0; in php_getopt()
125 optchr = 1; in php_getopt()
128 if (argv[*optind][optchr] == ':') { in php_getopt()
131 return (php_opt_error(argc, argv, *optind-1, optchr, OPTERRCOLON, show_err)); in php_getopt()
133 arg_start = 1 + optchr; in php_getopt()
140 int errchr = optchr; in php_getopt()
142 if (!argv[*optind][optchr+1]) { in php_getopt()
146 optchr++; in php_getopt()
150 } else if (argv[*optind][optchr] == opts[php_optidx].opt_char) { in php_getopt()
164 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
182 if (!argv[*optind][optchr+1]) in php_getopt()
187 optchr++; in php_getopt()