X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcommand.h;h=423a8a30195a9e0802a10f1cf2cc8d4bc6cc648a;hb=b996647adb40b2b51f888c8e755d5f5f2c15cb37;hp=0a61996d5e6b94187f02661019e7f980606590d5;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/command.h b/src/command.h index 0a61996d5e..423a8a3019 100644 --- a/src/command.h +++ b/src/command.h @@ -43,7 +43,17 @@ enum extern int pgm_state; extern const char *cur_proc; -void cmd_init (void); int cmd_parse (void); +/* Prototype all the command functions. */ +#define DEFCMD(NAME, T1, T2, T3, T4, FUNC) \ + int FUNC (void); +#define SPCCMD(NAME, T1, T2, T3, T4, FUNC) \ + int FUNC (void); +#define UNIMPL(NAME, T1, T2, T3, T4) +#include "command.def" +#undef DEFCMD +#undef SPCCMD +#undef UNIMPL + #endif /* !command_h */