Lines Matching defs:o_st

55 get_opt_arg_must(tOptions * opts, tOptState * o_st);
58 get_opt_arg_may(tOptions * pOpts, tOptState * o_st);
61 get_opt_arg_none(tOptions * pOpts, tOptState * o_st);
484 * @param[in,out] o_st the option processing state
488 get_opt_arg_must(tOptions * opts, tOptState * o_st)
490 switch (o_st->optType) {
497 o_st->pzOptArg = opts->pzCurOpt;
505 if (o_st->pzOptArg == NULL)
506 o_st->pzOptArg = opts->origArgVect[ opts->curOptIdx++ ];
527 fprintf(stderr, zMisArg, opts->pzProgPath, o_st->pOD->pz_Name);
543 * @param o_st a structure for managing the current processing state
547 get_opt_arg_may(tOptions * pOpts, tOptState * o_st)
552 switch (o_st->optType) {
555 o_st->pzOptArg = pOpts->pzCurOpt;
565 o_st->pzOptArg = NULL;
568 o_st->pzOptArg = pzLA;
578 if ( (o_st->pzOptArg == NULL)
588 o_st->pzOptArg = NULL;
591 o_st->pzOptArg = pzLA;
615 * @param[in,out] o_st the option processing state
619 get_opt_arg_none(tOptions * pOpts, tOptState * o_st)
625 if (o_st->optType == TOPT_SHORT)
631 else if (o_st->pzOptArg != NULL) {
632 fprintf(stderr, zNoArg, pOpts->pzProgPath, o_st->pOD->pz_Name);
648 * @param[in,out] o_st the option processing state
652 get_opt_arg(tOptions * opts, tOptState * o_st)
654 o_st->flags |= (o_st->pOD->fOptState & OPTST_PERSISTENT_MASK);
661 if ( ((o_st->flags & OPTST_DISABLED) != 0)
662 || (OPTST_GET_ARGTYPE(o_st->flags) == OPARG_TYPE_NONE))
663 return get_opt_arg_none(opts, o_st);
665 if (o_st->flags & OPTST_ARG_OPTIONAL)
666 return get_opt_arg_may( opts, o_st);
668 return get_opt_arg_must(opts, o_st);
675 * @param[in,out] o_st the option processing state
679 find_opt(tOptions * opts, tOptState * o_st)
687 return opt_find_short(opts, (uint8_t)*(opts->pzCurOpt), o_st);
706 return opt_find_long(opts, pz, o_st);
717 res = opt_find_long(opts, pz, o_st);
759 return opt_find_long(opts, opts->pzCurOpt, o_st);
768 return opt_find_short(opts, (uint8_t)*(opts->pzCurOpt), o_st);
770 return opt_find_long(opts, opts->pzCurOpt, o_st);