{ 0, 0 }
};
-const struct tvec_info tvec_adhocinfo =
+const struct tvec_config tvec_adhocconfig =
{ 0, 1, 1, sizeof(struct tvec_reg) };
static const struct outform *find_outform(const char *p)
}
void tvec_parseargs(int argc, char *argv[], struct tvec_state *tv_out,
- int *argpos_out, const struct tvec_info *info)
+ int *argpos_out, const struct tvec_config *config)
{
FILE *ofp = 0;
const struct outform *of = 0;
if (of) o = of->makefn(ofp);
else o = tvec_dfltout(ofp);
- tvec_begin(tv_out, info, o); *argpos_out = optind;
+ tvec_begin(tv_out, config, o); *argpos_out = optind;
}
int tvec_readstdin(struct tvec_state *tv)
}
int tvec_main(int argc, char *argv[],
- const struct tvec_info *info, const char *dflt)
+ const struct tvec_config *config, const char *dflt)
{
struct tvec_state tv;
int argpos;
- tvec_parseargs(argc, argv, &tv, &argpos, info);
+ tvec_parseargs(argc, argv, &tv, &argpos, config);
tvec_readargs(argc, argv, &tv, &argpos, dflt);
return (tvec_end(&tv));
}