Lines Matching full:od
101 * arg: + tOptDesc * + od + the descriptor for this arg +
107 optionNumericVal(tOptions * opts, tOptDesc * od) in optionNumericVal() argument
116 if (INQUERY_CALL(opts, od) || (od->optArg.argString == NULL)) in optionNumericVal()
122 * emitted by passing a NULL od pointer. Also bail out in optionNumericVal()
125 if ( (od == NULL) in optionNumericVal()
126 || (od->optArg.argString == NULL) in optionNumericVal()
127 || ((od->fOptState & OPTST_RESET) != 0) in optionNumericVal()
132 val = strtol(od->optArg.argString, &pz, 0); in optionNumericVal()
133 if ((pz == od->optArg.argString) || (errno != 0)) in optionNumericVal()
136 if ((od->fOptState & OPTST_SCALED_NUM) != 0) in optionNumericVal()
155 if (od->fOptState & OPTST_ALLOC_ARG) { in optionNumericVal()
156 AGFREE(od->optArg.argString); in optionNumericVal()
157 od->fOptState &= ~OPTST_ALLOC_ARG; in optionNumericVal()
160 od->optArg.argInt = val; in optionNumericVal()
165 fprintf( stderr, zNotNumber, opts->pzProgName, od->optArg.argString ); in optionNumericVal()
170 od->optArg.argInt = ~0; in optionNumericVal()