Encapsulated lexer and updated calling functions accordingly.
[pspp-builds.git] / src / language / utilities / date.c
index aa6cb2205d934d3f888088e6e42813c244845544..254421350a5a9338121975239762d8b67e123357 100644 (file)
    02110-1301, USA. */
 
 #include <config.h>
-#include "command.h"
-#include "message.h"
-#include "lexer.h"
+#include <language/command.h>
+#include <libpspp/message.h>
+#include <language/lexer/lexer.h>
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 
 /* Stub for USE command. */
 int
-cmd_use (void
+cmd_use (struct lexer *lexer, struct dataset *ds UNUSED
 {
-  if (lex_match (T_ALL))
-    return lex_end_of_command ();
+  if (lex_match (lexer, T_ALL))
+    return lex_end_of_command (lexer);
 
   msg (SW, _("Only USE ALL is currently implemented."));
   return CMD_FAILURE;