#include "alloc.h"
#include "case.h"
#include "command.h"
-#include "devind.h"
#include "dictionary.h"
#include "lexer.h"
#include "error.h"
{
/* Add the weight variable to the end of the variable list. */
cmd.n_variables++;
- cmd.v_variables = xrealloc (cmd.v_variables,
- (cmd.n_variables
- * sizeof *cmd.v_variables));
+ cmd.v_variables = xnrealloc (cmd.v_variables, cmd.n_variables,
+ sizeof *cmd.v_variables);
cmd.v_variables[cmd.n_variables - 1]
= dict_get_weight (default_dict);
}
/* Add the weight variable at the beginning of the variable list. */
cmd.n_variables++;
- cmd.v_variables = xrealloc (cmd.v_variables,
- cmd.n_variables * sizeof *cmd.v_variables);
+ cmd.v_variables = xnrealloc (cmd.v_variables,
+ cmd.n_variables, sizeof *cmd.v_variables);
memmove (&cmd.v_variables[1], &cmd.v_variables[0],
(cmd.n_variables - 1) * sizeof *cmd.v_variables);
cmd.v_variables[0] = &casenum_var;
fputs (" <TR>\n", x->file.file);
}
- else if (d->class == &devind_class)
- {
- /* FIXME */
- }
else
assert (0);
}
size_t x;
/* Allocate, initialize header. */
- prc->header = xmalloc (sizeof (char *) * prc->header_rows);
+ prc->header = xnmalloc (prc->header_rows, sizeof *prc->header);
{
int w = n_chars_width (d);
for (i = 0; i < prc->header_rows; i++)
fputs ("</TABLE>\n", x->file.file);
}
}
- else if (d->class == &devind_class)
- {
- /* FIXME */
- }
else
assert (0);
if (d->class == &html_class)
continue;
- else if (d->class == &devind_class)
- {
- /* FIXME */
- tab_output_text (TAT_NONE, "(devind not supported on LIST yet)");
- continue;
- }
assert (d->class->special == 0);
fputs (" </TR>\n", x->file.file);
}
- else if (d->class == &devind_class)
- {
- /* FIXME */
- }
else
assert (0);