Lines Matching refs:od
43 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od);
55 emit_action(tOptions * opts, tOptDesc * od);
58 emit_inaction(tOptions * opts, tOptDesc * od);
288 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od) in text_to_var() argument
332 if (od->fOptState & OPTST_ALLOC_ARG) { in text_to_var()
333 AGFREE(od->optArg.argString); in text_to_var()
334 od->fOptState &= ~OPTST_ALLOC_ARG; in text_to_var()
336 od->optArg.argString = "c"; in text_to_var()
337 optionPrintVersion(opts, od); in text_to_var()
437 tOptDesc * od = opts->pOptDesc; in emit_wrapup() local
442 for (;opt_ct > 0; od++, --opt_ct) { in emit_wrapup()
447 if (SKIP_OPT(od) || (od->pz_NAME == NULL)) in emit_wrapup()
453 if ((od->optMinCt == 0) && ((od->fOptState & OPTST_MUST_SET) == 0)) in emit_wrapup()
456 if (od->optMaxCt > 1) in emit_wrapup()
461 int min = (od->optMinCt == 0) ? 1 : od->optMinCt; in emit_wrapup()
462 printf(fmt, opts->pzPROGNAME, od->pz_NAME, min); in emit_wrapup()
471 tOptDesc * od = opts->pOptDesc; in emit_setup() local
476 for (;opt_ct > 0; od++, --opt_ct) { in emit_setup()
483 if (SKIP_OPT(od) || (od->pz_NAME == NULL)) in emit_setup()
486 if (od->optMaxCt > 1) in emit_setup()
494 switch (OPTST_GET_ARGTYPE(od->fOptState)) { in emit_setup()
496 (*(od->pOptProc))(OPTPROC_EMIT_SHELL, od ); in emit_setup()
497 def_val = od->optArg.argString; in emit_setup()
505 (int)od->optArg.argInt); in emit_setup()
511 (unsigned long)od->optArg.argIntptr); in emit_setup()
516 def_val = (od->optArg.argBool) ? TRUE_STR : FALSE_STR; in emit_setup()
520 if (od->optArg.argString == NULL) { in emit_setup()
526 def_val = od->optArg.argString; in emit_setup()
529 printf(fmt, opts->pzPROGNAME, od->pz_NAME, def_val); in emit_setup()
534 emit_action(tOptions * opts, tOptDesc * od) in emit_action() argument
536 if (od->pOptProc == optionPrintVersion) in emit_action()
539 else if (od->pOptProc == optionPagedUsage) in emit_action()
542 else if (od->pOptProc == optionLoadOpt) { in emit_action()
546 } else if (od->pz_NAME == NULL) { in emit_action()
548 if (od->pOptProc == NULL) { in emit_action()
555 if (od->optMaxCt == 1) in emit_action()
556 printf(SGL_ARG_FMT, opts->pzPROGNAME, od->pz_NAME); in emit_action()
558 if ((unsigned)od->optMaxCt < NOLIMIT) in emit_action()
560 od->pz_NAME, od->optMaxCt); in emit_action()
562 printf(MULTI_ARG_FMT, opts->pzPROGNAME, od->pz_NAME); in emit_action()
568 if (OPTST_GET_ARGTYPE(od->fOptState) == OPARG_TYPE_NONE) { in emit_action()
569 printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME); in emit_action()
572 } else if (od->fOptState & OPTST_ARG_OPTIONAL) { in emit_action()
573 printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME); in emit_action()
584 emit_inaction(tOptions * opts, tOptDesc * od) in emit_inaction() argument
586 if (od->pOptProc == optionLoadOpt) { in emit_inaction()
589 } else if (od->optMaxCt == 1) in emit_inaction()
591 od->pz_NAME, od->pz_DisablePfx); in emit_inaction()
594 od->pz_NAME, od->pz_DisablePfx); in emit_inaction()
609 tOptDesc * od = opts->pOptDesc; in emit_flag() local
614 for (;opt_ct > 0; od++, --opt_ct) { in emit_flag()
616 if (SKIP_OPT(od) || ! IS_GRAPHIC_CHAR(od->optValue)) in emit_flag()
619 printf(zOptionFlag, od->optValue); in emit_flag()
620 emit_action(opts, od); in emit_flag()
644 tOptDesc * od = opts->pOptDesc; in emit_match_expr() local
647 for (; ct-- > 0; od++) { in emit_match_expr()
653 if ((od == cod) || SKIP_OPT(od)) in emit_match_expr()
661 while (UPPER(od->pz_Name[match_ct]) == UPPER(name[match_ct])) in emit_match_expr()
670 if (od->pz_DisableName == NULL) in emit_match_expr()
674 while ( toupper((unsigned char)od->pz_DisableName[match_ct]) in emit_match_expr()
715 tOptDesc * od = opts->pOptDesc; in emit_long() local
727 if (SKIP_OPT(od)) in emit_long()
730 emit_match_expr(od->pz_Name, od, opts); in emit_long()
731 emit_action(opts, od); in emit_long()
736 if (od->pz_DisableName != NULL) { in emit_long()
737 emit_match_expr(od->pz_DisableName, od, opts); in emit_long()
738 emit_inaction(opts, od); in emit_long()
740 } while (od++, --ct > 0); in emit_long()