X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Futilities%2Fdate.c;h=8afbe6562d9dc1c8b2fb9ef0345b9d1f91891c41;hb=7b7d1e6fbf05cf190814b1f64d8ee363203d7499;hp=f465eb37b5a4d8028ffa6e0abff62fa9926b4ee5;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp diff --git a/src/language/utilities/date.c b/src/language/utilities/date.c index f465eb37b5..8afbe6562d 100644 --- a/src/language/utilities/date.c +++ b/src/language/utilities/date.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 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 @@ -15,9 +15,10 @@ along with this program. If not, see . */ #include -#include -#include -#include + +#include "language/command.h" +#include "language/lexer/lexer.h" +#include "libpspp/message.h" #include "gettext.h" #define _(msgid) gettext (msgid) @@ -27,8 +28,8 @@ 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.")); + msg (SW, _("Only %s is currently implemented."), "USE ALL"); return CMD_FAILURE; }