X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcommand.c;h=4afe70be1130a96af955f2627cbe7724e516244e;hb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;hp=d4c130aa64bce968c62d38f373d4304b243b8178;hpb=b9dcb1c23a48b9db5444b9f10aac0748b83898ad;p=pspp-builds.git diff --git a/src/command.c b/src/command.c index d4c130aa..4afe70be 100644 --- a/src/command.c +++ b/src/command.c @@ -36,12 +36,12 @@ char *alloca (); #endif #include +#include "command.h" #include #include #include #include #include "alloc.h" -#include "command.h" #include "error.h" #include "getline.h" #include "lexer.h" @@ -86,14 +86,6 @@ struct command struct command *next; /* Next command with same word[0]. */ }; -/* Prototype all the command functions. */ -#define DEFCMD(NAME, T1, T2, T3, T4, FUNC) \ - int FUNC (void); -#define UNIMPL(NAME, T1, T2, T3, T4) -#include "command.def" -#undef DEFCMD -#undef UNIMPL - /* Define the command array. */ #define DEFCMD(NAME, T1, T2, T3, T4, FUNC) \ {NAME, {T1, T2, T3, T4}, FUNC, {NULL, NULL, NULL}, NULL}, @@ -576,7 +568,7 @@ cmd_n_of_cases (void) x = lex_integer (); lex_get (); if (!lex_match_id ("ESTIMATED")) - default_dict.N = x; + dict_set_case_limit (default_dict, x); return lex_end_of_command (); }