lexer: Reimplement for better testability and internationalization.
[pspp-builds.git] / src / language / utilities / date.c
index 80a09c21f5b4d8aaf1e2437f8b1ea8c2a0ba5614..3b754b4980efa902ce155bc4708ce93c7358242f 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2004, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2010, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ int
 cmd_use (struct lexer *lexer, struct dataset *ds UNUSED)
 {
   if (lex_match (lexer, T_ALL))
-    return lex_end_of_command (lexer);
+    return CMD_SUCCESS;
 
   msg (SW, _("Only USE ALL is currently implemented."));
   return CMD_FAILURE;