/[pspp]/pspp/src/autorecode.c
ViewVC logotype

Diff of /pspp/src/autorecode.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by blp, Wed Oct 26 05:06:14 2005 UTC revision 1.23 by blp, Sat Oct 29 05:50:06 2005 UTC
# Line 231  recode (const struct autorecode_pgm *arc Line 231  recode (const struct autorecode_pgm *arc
231    t->h.proc = autorecode_trns_proc;    t->h.proc = autorecode_trns_proc;
232    t->h.free = autorecode_trns_free;    t->h.free = autorecode_trns_free;
233    t->owner = pool;    t->owner = pool;
234    t->specs = pool_alloc (t->owner, sizeof *t->specs * arc->var_cnt);    t->specs = pool_nalloc (t->owner, arc->var_cnt, sizeof *t->specs);
235    t->spec_cnt = arc->var_cnt;    t->spec_cnt = arc->var_cnt;
236    for (i = 0; i < arc->var_cnt; i++)    for (i = 0; i < arc->var_cnt; i++)
237      {      {
# Line 357  autorecode_proc_func (struct ccase *c, v Line 357  autorecode_proc_func (struct ccase *c, v
357        vpp = (union value **) hsh_probe (arc->src_values[i], &v);        vpp = (union value **) hsh_probe (arc->src_values[i], &v);
358        if (*vpp == NULL)        if (*vpp == NULL)
359          {          {
360            vp = pool_alloc (arc->src_values_pool, sizeof (union value));            vp = pool_alloc (arc->src_values_pool, sizeof *vp);
361            if (arc->src_vars[i]->type == NUMERIC)            if (arc->src_vars[i]->type == NUMERIC)
362              vp->f = v.f;              vp->f = v.f;
363            else            else

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26