unused.
+Wed Apr 26 14:55:19 2006 Ben Pfaff <blp@gnu.org>
+
+ * variable.h: (struct variable) Remove `init' member and all
+ references to it from other files. It was initialized in several
+ places, but nothing really ever used it for anything worthwhile.
+ Thanks to Jason Stover for pointing out how confusing this
+ member is.
+
Sun Apr 23 22:04:45 2006 Ben Pfaff <blp@gnu.org>
Continue reforming error message support. In this phase, get rid
v->width = width;
v->fv = d->next_value_idx;
v->nv = width == 0 ? 1 : DIV_RND_UP (width, 8);
- v->init = 1;
v->reinit = dict_class_from_id (v->name) != DC_SCRATCH;
v->index = d->var_cnt;
mv_init (&v->miss, width);
short_name[] is intentionally not copied, because there is
no reason to give a new variable with potentially a new name
the same short name. */
- nv->init = 1;
nv->reinit = ov->reinit;
mv_copy (&nv->miss, &ov->miss);
nv->print = ov->print;
/* Case information. */
int fv, nv; /* Index into `value's, number of values. */
- bool init; /* True if needs init and possibly reinit. */
bool reinit; /* True: reinitialize; false: leave. */
/* Data for use by containing dictionary. */
{
convert_fmt_ItoO (&input, &v->print);
v->write = v->print;
- if (!in_input_program () && !in_file_type ())
- v->init = 0;
}
else
{
return 0;
}
- if (!in_input_program () && !in_file_type ())
- v->init = 0;
-
spec = xmalloc (sizeof *spec);
spec->v = v;
spec->input = f->f;
}
v->print = v->write = output;
- if (!in_input_program () && !in_file_type ())
- v->init = 0;
-
spec = xmalloc (sizeof *spec);
spec->input = input;
spec->v = v;
if (!v[i]->reinit)
continue;
v[i]->reinit = 0;
- v[i]->init = 1;
}
free (v);
}
free (dest[i]);
- destvar->init = 0;
if (dest_label[i])
{
destvar->label = dest_label[i];
ok = procedure (autorecode_proc_func, &arc);
for (i = 0; i < arc.var_cnt; i++)
- {
- arc.dst_vars[i] = dict_create_var_assert (default_dict,
- arc.dst_names[i], 0);
- arc.dst_vars[i]->init = 0;
- }
+ arc.dst_vars[i] = dict_create_var_assert (default_dict,
+ arc.dst_names[i], 0);
recode (&arc);
arc_free (&arc);
struct variable *dst_var;
dst_var = dict_create_var_assert (default_dict, dv->z_name, 0);
- dst_var->init = 0;
if (dv->v->label)
{
dst_var->label = xmalloc (strlen (dv->v->label) + 12);
for (i = 0; i < var_cnt; i++)
{
struct variable *v = dict_get_var (default_dict, i);
- if (v->init && v->reinit)
+ if (v->reinit)
{
if (v->type == NUMERIC)
case_data_rw (c, v->fv)->f = SYSMIS;