chiark / gitweb /
@@@ more mess
[mLib] / test / tvec-core.c
index 9ec5d107722c590b8f63bdbe2e57fc8466cac6a1..6aa49fa06ca618ad136d167d3b71cf0e17d14ab9 100644 (file)
@@ -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;