Lines Matching defs:opts

36 find_dir_name(tOptions * opts, int * p_free);
39 find_file_name(tOptions * opts, int * p_free_name);
57 open_sv_file(tOptions * opts);
72 prt_file_arg(FILE * fp, tOptDesc * od, tOptions * opts);
78 find_dir_name(tOptions * opts, int * p_free)
82 if ( (opts->specOptIdx.save_opts == NO_EQUIVALENT)
83 || (opts->specOptIdx.save_opts == 0))
86 pzDir = opts->pOptDesc[ opts->specOptIdx.save_opts ].optArg.argString;
95 char const * const * papz = opts->papzHomeList;
131 fprintf(stderr, zsave_warn, opts->pzProgName);
160 find_file_name(tOptions * opts, int * p_free_name)
165 char const * pzDir = find_dir_name(opts, &free_dir_name);
183 fprintf(stderr, zsave_warn, opts->pzProgName);
216 size_t sz = strlen(pzDir) + strlen(opts->pzRcName) + 2;
221 snprintf(pzPath, sz, "%s/%s", pzDir, opts->pzRcName);
223 sprintf(pzPath, "%s/%s", pzDir, opts->pzRcName);
237 fprintf(stderr, zsave_warn, opts->pzProgName);
256 fprintf(stderr, zsave_warn, opts->pzProgName, pzDir);
518 * @param[in] opts the program options structure
522 open_sv_file(tOptions * opts)
528 char const * pzFName = find_file_name(opts, &free_name);
534 fprintf(stderr, zsave_warn, opts->pzProgName);
547 char const * e = strchr(opts->pzUsageTitle, NL);
549 fwrite(opts->pzUsageTitle, 1, e - opts->pzUsageTitle, fp);
665 * @param[in] opts the program options descriptor
668 prt_file_arg(FILE * fp, tOptDesc * od, tOptions * opts)
677 else if (HAS_originalOptArgArray(opts)) {
679 opts->originalOptArgArray[od->optIndex].argString;
692 * arg: tOptions *, opts, program options descriptor
697 * of that file can be specified with the argument to the @code{--save-opts}
718 optionSaveFile(tOptions * opts)
722 FILE * fp = open_sv_file(opts);
730 ct = opts->presetOptCt;
731 od = opts->pOptDesc;
760 ? (opts->pOptDesc + od->optActualIndex) : od;
792 prt_file_arg(fp, p, opts);