projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FORMATS, PRINT FORMATS, WRITE FORMATS can only change the format of
[pspp-builds.git]
/
src
/
command.h
diff --git
a/src/command.h
b/src/command.h
index b051a4be1b8773cdc8a218b095c875e2e544ebdf..7b51fbcf5764abe3989ade2e793d581148add8be 100644
(file)
--- a/
src/command.h
+++ b/
src/command.h
@@
-37,21
+37,30
@@
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_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;
};
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);
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 DBGCMD(NAME, T1, T2, T3, T4, FUNC) \
+ int FUNC (void);
#define UNIMPL(NAME, T1, T2, T3, T4)
#include "command.def"
#undef DEFCMD
#define UNIMPL(NAME, T1, T2, T3, T4)
#include "command.def"
#undef DEFCMD
+#undef SPCCMD
#undef UNIMPL
#undef UNIMPL
+#undef DBGCMD
#endif /* !command_h */
#endif /* !command_h */