summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorToby Goodwin <LibreSoftwareDesign@gmail.com>2012-10-04 22:54:20 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:24 +0100
commitd1f7167ce21da3e3f4ee051b2fdd24fc9607bbdc (patch)
tree113eff922767fa82629c897ec87599e352f359f4 /lex.c
parent826eea2e08a9ec4254ccbd4d12fcd7828f8c413d (diff)
more errors
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c4
1 files changed, 2 insertions, 2 deletions
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) {