Lines Matching refs:o_st
458 get_opt_arg_must(tOptions * opts, tOptState * o_st) in get_opt_arg_must() argument
460 switch (o_st->optType) { in get_opt_arg_must()
467 o_st->pzOptArg = opts->pzCurOpt; in get_opt_arg_must()
475 if (o_st->pzOptArg == NULL) in get_opt_arg_must()
476 o_st->pzOptArg = opts->origArgVect[ opts->curOptIdx++ ]; in get_opt_arg_must()
497 fprintf(stderr, zMisArg, opts->pzProgPath, o_st->pOD->pz_Name); in get_opt_arg_must()
517 get_opt_arg_may(tOptions * pOpts, tOptState * o_st) in get_opt_arg_may() argument
522 switch (o_st->optType) { in get_opt_arg_may()
525 o_st->pzOptArg = pOpts->pzCurOpt; in get_opt_arg_may()
535 o_st->pzOptArg = NULL; in get_opt_arg_may()
538 o_st->pzOptArg = pzLA; in get_opt_arg_may()
548 if ( (o_st->pzOptArg == NULL) in get_opt_arg_may()
558 o_st->pzOptArg = NULL; in get_opt_arg_may()
561 o_st->pzOptArg = pzLA; in get_opt_arg_may()
589 get_opt_arg_none(tOptions * pOpts, tOptState * o_st) in get_opt_arg_none() argument
595 if (o_st->optType == TOPT_SHORT) in get_opt_arg_none()
601 else if (o_st->pzOptArg != NULL) { in get_opt_arg_none()
602 fprintf(stderr, zNoArg, pOpts->pzProgPath, o_st->pOD->pz_Name); in get_opt_arg_none()
623 get_opt_arg(tOptions * opts, tOptState * o_st) in get_opt_arg() argument
625 o_st->flags |= (o_st->pOD->fOptState & OPTST_PERSISTENT_MASK); in get_opt_arg()
632 if ((o_st->flags & OPTST_DISABLED) != 0) in get_opt_arg()
633 return get_opt_arg_none(opts, o_st); in get_opt_arg()
635 switch (OPTST_GET_ARGTYPE(o_st->flags)) { in get_opt_arg()
641 tSuccess res = get_opt_arg_none(opts, o_st); in get_opt_arg()
642 o_st->pzOptArg = o_st->pOD->optArg.argString; in get_opt_arg()
647 return get_opt_arg_none(opts, o_st); in get_opt_arg()
650 if (o_st->flags & OPTST_ARG_OPTIONAL) in get_opt_arg()
651 return get_opt_arg_may( opts, o_st); in get_opt_arg()
653 return get_opt_arg_must(opts, o_st); in get_opt_arg()
664 find_opt(tOptions * opts, tOptState * o_st) in find_opt() argument
672 return opt_find_short(opts, (uint8_t)*(opts->pzCurOpt), o_st); in find_opt()
691 return opt_find_long(opts, pz, o_st); in find_opt()
702 res = opt_find_long(opts, pz, o_st); in find_opt()
744 return opt_find_long(opts, opts->pzCurOpt, o_st); in find_opt()
753 return opt_find_short(opts, (uint8_t)*(opts->pzCurOpt), o_st); in find_opt()
755 return opt_find_long(opts, opts->pzCurOpt, o_st); in find_opt()