lexer: Use error helper functions in more situations.
[pspp] / src / language / data-io / inpt-pgm.c
index 99cc17a0fb1a4927fddba0ee17138ee158c95057..6f2a99e038cceca6bb2fc06c1b64ca30ec6f9e30 100644 (file)
@@ -277,7 +277,7 @@ cmd_reread (struct lexer *lexer, struct dataset *ds)
 
          if (e)
            {
-              msg (SE, _("%s subcommand may be given at most once."), "COLUMN");
+              lex_sbc_only_once ("COLUMN");
              expr_free (e);
              return CMD_CASCADING_FAILURE;
            }
@@ -290,7 +290,7 @@ cmd_reread (struct lexer *lexer, struct dataset *ds)
        {
          lex_match (lexer, T_EQUALS);
           fh_unref (fh);
-          fh = fh_parse (lexer, FH_REF_FILE | FH_REF_INLINE);
+          fh = fh_parse (lexer, FH_REF_FILE | FH_REF_INLINE, NULL);
          if (fh == NULL)
            {
              expr_free (e);