Lines Matching refs:match
178 int i, match, exact_match, second_partial_match; in parse_long_options() local
198 match = -1; in parse_long_options()
221 match = i; in parse_long_options()
233 if (match == -1) { /* first partial match */ in parse_long_options()
234 match = i; in parse_long_options()
236 long_options[i].has_arg != long_options[match].has_arg || in parse_long_options()
237 long_options[i].flag != long_options[match].flag || in parse_long_options()
238 long_options[i].val != long_options[match].val) { in parse_long_options()
255 if (match != -1) { /* option found */ in parse_long_options()
256 if (long_options[match].has_arg == no_argument in parse_long_options()
269 if (long_options[match].flag == NULL) { in parse_long_options()
270 state->optopt = long_options[match].val; in parse_long_options()
280 if (long_options[match].has_arg == required_argument || in parse_long_options()
281 long_options[match].has_arg == optional_argument) { in parse_long_options()
284 } else if (long_options[match].has_arg == required_argument) { in parse_long_options()
291 if ((long_options[match].has_arg == required_argument) in parse_long_options()
307 if (long_options[match].flag == NULL) { in parse_long_options()
308 state->optopt = long_options[match].val; in parse_long_options()
331 *idx = match; in parse_long_options()
333 if (long_options[match].flag) { in parse_long_options()
334 *long_options[match].flag = long_options[match].val; in parse_long_options()
337 return long_options[match].val; in parse_long_options()