/* Determines whether command C is appropriate to call in this
part of a FILE TYPE structure. */
static int
-FILE_TYPE_okay (const struct command *c)
+FILE_TYPE_okay (const struct command *c UNUSED)
+#if 0
{
int okay = 0;
&& c->func != cmd_repeating_data
&& c->func != cmd_end_file_type)
msg (SE, _("%s not allowed inside FILE TYPE/END FILE TYPE."), c->name);
-#if 0
/* FIXME */
else if (c->func == cmd_repeating_data && fty.type == FTY_GROUPED)
msg (SE, _("%s not allowed inside FILE TYPE GROUPED/END FILE TYPE."),
else if (!fty.had_rec_type && c->func != cmd_record_type)
msg (SE, _("RECORD TYPE must be the first command inside a "
"FILE TYPE structure."));
-#endif
else
okay = 1;
-#if 0
if (c->func == cmd_record_type)
fty.had_rec_type = 1;
-#endif
return okay;
}
+#else
+{
+ return 1;
+}
+#endif
/* Parses an entire PSPP command. This includes everything from the
command name to the terminating dot. Does most of its work by
DEFCMD ("ELSE IF", ERRO, INPU, TRAN, TRAN, cmd_else_if)
DEFCMD ("END CASE", ERRO, INPU, ERRO, ERRO, cmd_end_case)
DEFCMD ("END FILE", ERRO, INPU, ERRO, ERRO, cmd_end_file)
-DEFCMD ("END FILE TYPE", ERRO, TRAN, ERRO, ERRO, cmd_end_file_type)
+UNIMPL ("END FILE TYPE", ERRO, TRAN, ERRO, ERRO, "Ends complex data input")
DEFCMD ("END IF", ERRO, INPU, TRAN, TRAN, cmd_end_if)
DEFCMD ("END INPUT PROGRAM", ERRO, TRAN, ERRO, ERRO, cmd_end_input_program)
DEFCMD ("END LOOP", ERRO, INPU, TRAN, TRAN, cmd_end_loop)
UNIMPL ("FACTOR", ERRO, ERRO, ERRO, ERRO, "Factor analysis")
DEFCMD ("FILE HANDLE", INIT, INPU, TRAN, PROC, cmd_file_handle)
SPCCMD ("FILE LABEL", INIT, INPU, TRAN, PROC, cmd_file_label)
-DEFCMD ("FILE TYPE", INPU, ERRO, INPU, INPU, cmd_file_type)
+UNIMPL ("FILE TYPE", INPU, ERRO, INPU, INPU, "Complex data input")
DEFCMD ("FILTER", ERRO, ERRO, TRAN, TRAN, cmd_filter)
DEFCMD ("FINISH", INIT, INPU, TRAN, PROC, cmd_finish)
UNIMPL ("FIT", ERRO, ERRO, ERRO, ERRO, "Goodness of Fit")