Lines Matching refs:opts
58 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *opt… in php_getopt() argument
112 if (opts[php_optidx].opt_char == '-') { in php_getopt()
115 …} else if (opts[php_optidx].opt_name && !strncmp(&argv[*optind][2], opts[php_optidx].opt_name, arg… in php_getopt()
122 arg_start += (int)strlen(opts[php_optidx].opt_name); in php_getopt()
139 if (opts[php_optidx].opt_char == '-') { in php_getopt()
151 } else if (argv[*optind][optchr] == opts[php_optidx].opt_char) { in php_getopt()
156 if (opts[php_optidx].need_param) { in php_getopt()
164 if (opts[php_optidx].need_param == 1) { in php_getopt()
168 } else if (opts[php_optidx].need_param == 1) { in php_getopt()
179 return opts[php_optidx].opt_char; in php_getopt()
193 return opts[php_optidx].opt_char; in php_getopt()