projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adopt use of gnulib for portability.
[pspp]
/
src
/
command.h
diff --git
a/src/command.h
b/src/command.h
index 423a8a30195a9e0802a10f1cf2cc8d4bc6cc648a..43478ef4cacf2d1af06fbe3fc36052ef2ae5e046 100644
(file)
--- a/
src/command.h
+++ b/
src/command.h
@@
-14,8
+14,8
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
#if !command_h
#define command_h 1
#if !command_h
#define command_h 1
@@
-37,12
+37,16
@@
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;
+
+char * pspp_completion_function (const char *text, int state);
+
+
int cmd_parse (void);
/* Prototype all the command functions. */
int cmd_parse (void);
/* Prototype all the command functions. */
@@
-50,10
+54,13
@@
int cmd_parse (void);
int FUNC (void);
#define SPCCMD(NAME, T1, T2, T3, T4, FUNC) \
int FUNC (void);
int FUNC (void);
#define SPCCMD(NAME, T1, T2, T3, T4, FUNC) \
int FUNC (void);
-#define UNIMPL(NAME, T1, T2, T3, T4)
+#define DBGCMD(NAME, T1, T2, T3, T4, FUNC) \
+ int FUNC (void);
+#define UNIMPL(NAME, T1, T2, T3, T4, DESC)
#include "command.def"
#undef DEFCMD
#undef SPCCMD
#undef UNIMPL
#include "command.def"
#undef DEFCMD
#undef SPCCMD
#undef UNIMPL
+#undef DBGCMD
#endif /* !command_h */
#endif /* !command_h */