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