From d1f7167ce21da3e3f4ee051b2fdd24fc9607bbdc Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Thu, 4 Oct 2012 22:54:20 +0100 Subject: more errors --- lex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lex.c') diff --git a/lex.c b/lex.c index 09add71..4a61b40 100644 --- a/lex.c +++ b/lex.c @@ -329,9 +329,9 @@ extern void yyerror(const char *s) { tok = "end of line"; else tok = nprint((lastchar < 32 || lastchar > 126) ? "(decimal %d)" : "'%c'", lastchar); - fprint(2, "line %d: %s near %s\n", lineno - (lastchar == '\n'), s, tok); + fprint(2, "rc: line %d: %s near %s\n", lineno - (lastchar == '\n'), s, tok); } else - fprint(2, "%s\n", s); + fprint(2, "rc: %s\n", s); } extern void scanerror(char *s) { -- cgit v1.2.3