X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcommand.h;h=f4113982830ca691aec23034d36b8217533c6021;hb=067d02c2b8c591efc368cf5127c497313d7a373f;hp=b051a4be1b8773cdc8a218b095c875e2e544ebdf;hpb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;p=pspp diff --git a/src/command.h b/src/command.h index b051a4be1b..f411398283 100644 --- a/src/command.h +++ b/src/command.h @@ -37,21 +37,23 @@ enum CMD_SUCCESS, /* Command successfully parsed and executed. */ CMD_PART_SUCCESS_MAYBE, /* Command may have been partially executed. */ CMD_PART_SUCCESS, /* Command fully executed up to error. */ - CMD_TRAILING_GARBAGE, /* Command followed by garbage. */ + CMD_TRAILING_GARBAGE /* Command followed by garbage. */ }; 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 */