X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdata-io%2Fget.c;h=cf59c8e0fbadc78f904fe9049d84341c5bf04e60;hb=774441e68b4d2e3a4b5c6975e9614dcd4369955e;hp=32aea2476cb58cd4c3b56674b0dec35b335874e8;hpb=a1efcf97ca2f75f4be6a0389ff2372c03ed2d4e1;p=pspp diff --git a/src/language/data-io/get.c b/src/language/data-io/get.c index 32aea2476c..cf59c8e0fb 100644 --- a/src/language/data-io/get.c +++ b/src/language/data-io/get.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007, 2010 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 @@ -77,7 +77,7 @@ parse_read_command (struct lexer *lexer, struct dataset *ds, enum reader_command { lex_match (lexer, '/'); - if (lex_match_id (lexer, "FILE") || lex_token (lexer) == T_STRING) + if (lex_match_id (lexer, "FILE") || lex_is_string (lexer)) { lex_match (lexer, '='); @@ -96,7 +96,7 @@ parse_read_command (struct lexer *lexer, struct dataset *ds, enum reader_command type = PFM_TAPE; else { - lex_error (lexer, _("expecting COMM or TAPE")); + lex_error (lexer, _("expecting %s or %s"), "COMM", "TAPE"); goto error; } }