[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/dictionary.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/dictionary.c |
Date: |
Sun, 07 Aug 2005 00:39:30 -0400 |
Index: pspp/src/dictionary.c
diff -u pspp/src/dictionary.c:1.25 pspp/src/dictionary.c:1.26
--- pspp/src/dictionary.c:1.25 Sun Jul 31 21:42:46 2005
+++ pspp/src/dictionary.c Sun Aug 7 04:39:28 2005
@@ -279,7 +279,7 @@
v->init = 1;
v->reinit = dict_class_from_id (v->name) != DC_SCRATCH;
v->index = d->var_cnt;
- v->miss_type = MISSING_NONE;
+ mv_init (&v->miss, width);
if (v->type == NUMERIC)
{
v->print = f8_2;
@@ -354,8 +354,7 @@
the same short name. */
nv->init = 1;
nv->reinit = ov->reinit;
- nv->miss_type = ov->miss_type;
- memcpy (nv->missing, ov->missing, sizeof nv->missing);
+ mv_copy (&nv->miss, &ov->miss);
nv->print = ov->print;
nv->write = ov->write;
val_labs_destroy (nv->val_labs);
@@ -678,7 +677,7 @@
else
{
double w = case_num (c, d->weight->fv);
- if ( w < 0.0 || w == SYSMIS || is_num_user_missing(w, d->weight) )
+ if (w < 0.0 || mv_is_num_missing (&d->weight->miss, w))
w = 0.0;
if ( w == 0.0 && *warn_on_invalid ) {
*warn_on_invalid = 0;
- [Pspp-cvs] Changes to pspp/src/dictionary.c,
Ben Pfaff <=