X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcommand.h;h=d4d6b83935986b56d022f9a6194859b0587f06b7;hb=c7693e9bf506dd7b5f0daa14c360b83779d499a8;hp=0a61996d5e6b94187f02661019e7f980606590d5;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/command.h b/src/command.h index 0a61996d5e..d4d6b83935 100644 --- a/src/command.h +++ b/src/command.h @@ -37,13 +37,27 @@ 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); + +char * pspp_completion_function (const char *text, int state); + + 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 */