Lines Matching full:od

247  * @param[in] od    for TT_VERSION, it is the version option
250 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od) in text_to_var() argument
294 if (od->fOptState & OPTST_ALLOC_ARG) { in text_to_var()
295 AGFREE(od->optArg.argString); in text_to_var()
296 od->fOptState &= ~OPTST_ALLOC_ARG; in text_to_var()
298 od->optArg.argString = "c"; in text_to_var()
299 optionPrintVersion(opts, od); in text_to_var()
399 tOptDesc * od = opts->pOptDesc; in emit_wrapup() local
404 for (;opt_ct > 0; od++, --opt_ct) { in emit_wrapup()
409 if (SKIP_OPT(od) || (od->pz_NAME == NULL)) in emit_wrapup()
415 if ((od->optMinCt == 0) && ((od->fOptState & OPTST_MUST_SET) == 0)) in emit_wrapup()
418 if (od->optMaxCt > 1) in emit_wrapup()
423 int min = (od->optMinCt == 0) ? 1 : od->optMinCt; in emit_wrapup()
424 printf(fmt, opts->pzPROGNAME, od->pz_NAME, min); in emit_wrapup()
433 tOptDesc * od = opts->pOptDesc; in emit_setup() local
438 for (;opt_ct > 0; od++, --opt_ct) { in emit_setup()
445 if (SKIP_OPT(od) || (od->pz_NAME == NULL)) in emit_setup()
448 if (od->optMaxCt > 1) in emit_setup()
456 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in emit_setup()
458 (*(od->pOptProc))(OPTPROC_EMIT_SHELL, od ); in emit_setup()
459 def_val = od->optArg.argString; in emit_setup()
467 (int)od->optArg.argInt); in emit_setup()
473 (unsigned long)od->optArg.argIntptr); in emit_setup()
478 def_val = (od->optArg.argBool) ? TRUE_STR : FALSE_STR; in emit_setup()
482 if (od->optArg.argString == NULL) { in emit_setup()
488 def_val = od->optArg.argString; in emit_setup()
491 printf(fmt, opts->pzPROGNAME, od->pz_NAME, def_val); in emit_setup()
496 emit_action(tOptions * opts, tOptDesc * od) in emit_action() argument
498 if (od->pOptProc == optionPrintVersion) in emit_action()
501 else if (od->pOptProc == optionPagedUsage) in emit_action()
504 else if (od->pOptProc == optionLoadOpt) { in emit_action()
508 } else if (od->pz_NAME == NULL) { in emit_action()
510 if (od->pOptProc == NULL) { in emit_action()
517 if (od->optMaxCt == 1) in emit_action()
518 printf(SGL_ARG_FMT, opts->pzPROGNAME, od->pz_NAME); in emit_action()
520 if ((unsigned)od->optMaxCt < NOLIMIT) in emit_action()
522 od->pz_NAME, od->optMaxCt); in emit_action()
524 printf(MULTI_ARG_FMT, opts->pzPROGNAME, od->pz_NAME); in emit_action()
530 if (OPTST_GET_ARGTYPE(od->fOptState) == OPARG_TYPE_NONE) { in emit_action()
531 printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME); in emit_action()
534 } else if (od->fOptState & OPTST_ARG_OPTIONAL) { in emit_action()
535 printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME); in emit_action()
546 emit_inaction(tOptions * opts, tOptDesc * od) in emit_inaction() argument
548 if (od->pOptProc == optionLoadOpt) { in emit_inaction()
551 } else if (od->optMaxCt == 1) in emit_inaction()
553 od->pz_NAME, od->pz_DisablePfx); in emit_inaction()
556 od->pz_NAME, od->pz_DisablePfx); in emit_inaction()
571 tOptDesc * od = opts->pOptDesc; in emit_flag() local
576 for (;opt_ct > 0; od++, --opt_ct) { in emit_flag()
578 if (SKIP_OPT(od) || ! IS_GRAPHIC_CHAR(od->optValue)) in emit_flag()
581 printf(zOptionFlag, od->optValue); in emit_flag()
582 emit_action(opts, od); in emit_flag()
606 tOptDesc * od = opts->pOptDesc; in emit_match_expr() local
609 for (; ct-- > 0; od++) { in emit_match_expr()
615 if ((od == cod) || SKIP_OPT(od)) in emit_match_expr()
623 while (UPPER(od->pz_Name[match_ct]) == UPPER(name[match_ct])) in emit_match_expr()
632 if (od->pz_DisableName == NULL) in emit_match_expr()
636 while ( toupper(od->pz_DisableName[match_ct]) in emit_match_expr()
677 tOptDesc * od = opts->pOptDesc; in emit_long() local
689 if (SKIP_OPT(od)) in emit_long()
692 emit_match_expr(od->pz_Name, od, opts); in emit_long()
693 emit_action(opts, od); in emit_long()
698 if (od->pz_DisableName != NULL) { in emit_long()
699 emit_match_expr(od->pz_DisableName, od, opts); in emit_long()
700 emit_inaction(opts, od); in emit_long()
702 } while (od++, --ct > 0); in emit_long()