X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/e63124bc579bfd97cfe2f620ddd84df9f20477d8..c5e0e40378b7e209521d2e9a52f055575a948313:/test/tvec-core.c?ds=inline diff --git a/test/tvec-core.c b/test/tvec-core.c index 9ec5d10..6aa49fa 100644 --- a/test/tvec-core.c +++ b/test/tvec-core.c @@ -526,16 +526,16 @@ end: /*----- Session lifecycle -------------------------------------------------*/ void tvec_begin(struct tvec_state *tv_out, - const struct tvec_info *info, + const struct tvec_config *config, struct tvec_output *o) { unsigned i; tv_out->f = 0; - assert(info->nrout <= info->nreg); - tv_out->nrout = info->nrout; tv_out->nreg = info->nreg; - tv_out->regsz = info->regsz; + assert(config->nrout <= config->nreg); + tv_out->nrout = config->nrout; tv_out->nreg = config->nreg; + tv_out->regsz = config->regsz; tv_out->in = xmalloc(tv_out->nreg*tv_out->regsz); tv_out->out = xmalloc(tv_out->nrout*tv_out->regsz); for (i = 0; i < tv_out->nreg; i++) { @@ -546,7 +546,7 @@ void tvec_begin(struct tvec_state *tv_out, for (i = 0; i < TVOUT_LIMIT; i++) tv_out->curr[i] = tv_out->all[i] = tv_out->grps[i] = 0; - tv_out->tests = info->tests; tv_out->test = 0; + tv_out->tests = config->tests; tv_out->test = 0; tv_out->infile = 0; tv_out->lno = 0; tv_out->fp = 0; o->tv = tv_out; tv_out->output = o;