Changed all the licence notices in all the files.
[pspp-builds.git] / src / command.h
index 0a61996d5e6b94187f02661019e7f980606590d5..1de5a251f81e413b40c47a4c9aef6185d35c7bf5 100644 (file)
@@ -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
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA. */
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA. */
 
 #if !command_h
 #define command_h 1
@@ -37,13 +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_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 DBGCMD(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
+#undef DBGCMD
+
 #endif /* !command_h */