- struct autorecode_trns *t;
- struct pool *pool;
- int i;
-
- pool = pool_create ();
- t = xmalloc (sizeof *t);
- t->h.proc = autorecode_trns_proc;
- t->h.free = autorecode_trns_free;
- t->owner = pool;
- t->specs = pool_alloc (t->owner, sizeof *t->specs * arc->var_cnt);
- t->spec_cnt = arc->var_cnt;
+ struct autorecode_trns *trns;
+ size_t i;
+
+ trns = pool_create_container (struct autorecode_trns, pool);
+ trns->specs = pool_nalloc (trns->pool, arc->var_cnt, sizeof *trns->specs);
+ trns->spec_cnt = arc->var_cnt;