X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fnumeric.c;h=ae9f25325a48ce0cded05b7451aa691633372d63;hb=f4e3578b2c8ce537de5516af55a62b84ebf2b744;hp=82b175725d27e2ff15070459bea9a899b0ae432d;hpb=0df9cdd3df66caf4353128feff3008289cda8115;p=pspp diff --git a/src/language/dictionary/numeric.c b/src/language/dictionary/numeric.c index 82b175725d..ae9f25325a 100644 --- a/src/language/dictionary/numeric.c +++ b/src/language/dictionary/numeric.c @@ -58,20 +58,21 @@ cmd_numeric (struct lexer *lexer, struct dataset *ds) if (!parse_format_specifier (lexer, &f)) goto fail; - if ( ! fmt_check_output (&f)) + if (! fmt_check_output (&f)) goto fail; if (fmt_is_string (f.type)) { char str[FMT_STRING_LEN_MAX + 1]; - msg (SE, _("Format type %s may not be used with a numeric " - "variable."), fmt_to_string (&f, str)); + lex_next_error (lexer, -1, -1, + _("Format type %s may not be used with a numeric " + "variable."), fmt_to_string (&f, str)); goto fail; } if (!lex_match (lexer, T_RPAREN)) { - lex_error_expecting (lexer, "`)'", NULL_SENTINEL); + lex_error_expecting (lexer, "`)'"); goto fail; } } @@ -135,8 +136,9 @@ cmd_string (struct lexer *lexer, struct dataset *ds) if (!fmt_is_string (f.type)) { char str[FMT_STRING_LEN_MAX + 1]; - msg (SE, _("Format type %s may not be used with a string " - "variable."), fmt_to_string (&f, str)); + lex_next_error (lexer, -2, -2, + _("Format type %s may not be used with a string " + "variable."), fmt_to_string (&f, str)); goto fail; } if (!fmt_check_output (&f))