Lines Matching refs:opt_state
470 load_opt_line(tOptions * opts, tOptState * opt_state, char * line, in load_opt_line() argument
485 if (! SUCCESSFUL(opt_find_long(opts, line, opt_state))) in load_opt_line()
488 } else if (! SUCCESSFUL(opt_find_short(opts, *line, opt_state))) in load_opt_line()
491 if ((! CALLED(direction)) && (opt_state->flags & OPTST_NO_INIT)) in load_opt_line()
494 opt_state->pzOptArg = trim_quotes(arg); in load_opt_line()
497 if (! direction_ok(opt_state->flags, direction)) in load_opt_line()
503 if (OPTST_GET_ARGTYPE(opt_state->pOD->fOptState) == OPARG_TYPE_NONE) { in load_opt_line()
504 if (*opt_state->pzOptArg != NUL) in load_opt_line()
506 opt_state->pzOptArg = NULL; in load_opt_line()
508 } else if (opt_state->pOD->fOptState & OPTST_ARG_OPTIONAL) { in load_opt_line()
509 if (*opt_state->pzOptArg == NUL) in load_opt_line()
510 opt_state->pzOptArg = NULL; in load_opt_line()
512 AGDUPSTR(opt_state->pzOptArg, opt_state->pzOptArg, "opt arg"); in load_opt_line()
513 opt_state->flags |= OPTST_ALLOC_ARG; in load_opt_line()
517 if (*opt_state->pzOptArg == NUL) in load_opt_line()
518 opt_state->pzOptArg = zNil; in load_opt_line()
520 AGDUPSTR(opt_state->pzOptArg, opt_state->pzOptArg, "opt arg"); in load_opt_line()
521 opt_state->flags |= OPTST_ALLOC_ARG; in load_opt_line()
528 handle_opt(opts, opt_state); in load_opt_line()