summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authortjg <tjg>2003-09-24 10:15:11 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:23 +0100
commit70a21186f92ee19a995080744ce9a320345c05cb (patch)
tree41540bb3724cbc5c8a36228e5723211338e22090 /lex.c
parent02c12b81c0b9b19a7b1372c8e6842337a9f00959 (diff)
Tidiness: minor improvements to input.c.
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lex.c b/lex.c
index 6bc92da..b53ae09 100644
--- a/lex.c
+++ b/lex.c
@@ -1,6 +1,8 @@
/* lex.c: rc's lexical analyzer */
#include "rc.h"
+
+#include "input.h"
#include "parse.h"
/*
@@ -333,7 +335,7 @@ extern void yyerror(const char *s) {
}
extern void scanerror(char *s) {
- flushu(); /* flush upto newline */
+ skiptonl(); /* flush upto newline */
yyerror(s);
errset = prerror = TRUE;
}