Replace syntactical keywords in error/warning messages by printf directives.
[pspp] / src / language / data-io / inpt-pgm.c
index a500df4117130f4ae0ce808b3a1ccd6a209f8b28..b9488f17f47604bcfd92ac9c80c4a79dda9a132c 100644 (file)
@@ -127,10 +127,10 @@ cmd_input_program (struct lexer *lexer, struct dataset *ds)
 
         default:
           if (cmd_result_is_failure (result)
-              && lex_get_error_mode (lexer) != LEX_ERROR_INTERACTIVE)
+              && lex_get_error_mode (lexer) != LEX_ERROR_TERMINAL)
             {
               if (result == CMD_EOF)
-                msg (SE, _("Unexpected end-of-file within INPUT PROGRAM."));
+                msg (SE, _("Unexpected end-of-file within %s."), "INPUT PROGRAM");
               inside_input_program = false;
               destroy_input_program (inp);
               return result;
@@ -143,7 +143,7 @@ cmd_input_program (struct lexer *lexer, struct dataset *ds)
 
   if (!saw_DATA_LIST && !saw_END_FILE)
     {
-      msg (SE, _("Input program must contain DATA LIST or END FILE."));
+      msg (SE, _("Input program must contain %s or %s."), "DATA LIST", "END FILE");
       destroy_input_program (inp);
       return CMD_FAILURE;
     }