02111-1307, USA. */
#include <config.h>
-#include <assert.h>
+#include "error.h"
#include <float.h>
#include <stdlib.h>
#include "alloc.h"
+#include "case.h"
#include "command.h"
#include "data-list.h"
#include "dfm.h"
switch (inp->init[i])
{
case INP_NUMERIC | INP_INIT_ONCE:
- c->data[i].f = 0.0;
+ case_data_rw (c, i)->f = 0.0;
break;
case INP_NUMERIC | INP_REINIT:
- c->data[i].f = SYSMIS;
+ case_data_rw (c, i)->f = SYSMIS;
break;
case INP_STRING | INP_INIT_ONCE:
case INP_STRING | INP_REINIT:
- memset (c->data[i].s, ' ', sizeof c->data[i].s);
+ memset (case_data_rw (c, i)->s, ' ', sizeof case_data_rw (c, i)->s);
break;
default:
assert (0);
case INP_NUMERIC | INP_INIT_ONCE:
break;
case INP_NUMERIC | INP_REINIT:
- c->data[i].f = SYSMIS;
+ case_data_rw (c, i)->f = SYSMIS;
break;
case INP_STRING | INP_INIT_ONCE:
break;
case INP_STRING | INP_REINIT:
- memset (c->data[i].s, ' ', sizeof c->data[i].s);
+ memset (case_data_rw (c, i)->s, ' ', sizeof case_data_rw (c, i)->s);
break;
default:
assert (0);
int case_num UNUSED)
{
assert (0);
+ abort ();
}
/* REREAD transformation. */
return CMD_FAILURE;
}
- e = expr_parse (PXP_NUMERIC);
+ e = expr_parse (EXPR_NUMERIC);
if (!e)
return CMD_FAILURE;
}
struct reread_trns *t = (struct reread_trns *) pt;
if (t->column == NULL)
- dfm_bkwd_record (t->handle, 1);
+ dfm_reread_record (t->handle, 1);
else
{
union value column;
{
msg (SE, _("REREAD: Column numbers must be positive finite "
"numbers. Column set to 1."));
- dfm_bkwd_record (t->handle, 1);
+ dfm_reread_record (t->handle, 1);
}
else
- dfm_bkwd_record (t->handle, column.f);
+ dfm_reread_record (t->handle, column.f);
}
return -1;
}