From 768d6b58865eb9b0ff5ebd4ef430b767d2108224 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 31 Jan 2020 08:54:10 +0200 Subject: [PATCH] Get tests working again. --- FIXES | 3 ++- lex.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/FIXES b/FIXES index 8854044..19afa0b 100644 --- a/FIXES +++ b/FIXES @@ -28,7 +28,8 @@ was sent to the printers in August, 1987. January 31, 2020: Merge PR #70, which avoids use of variable length arrays. Thanks to GitHub user michaelforney. Fix issue #60 ({0} in interval - expressions doesn't work). Thanks to Arnold Robbins. + expressions doesn't work). Also get all tests working again. + Thanks to Arnold Robbins. January 24, 2020: A number of small cleanups from Christos Zoulas. Add the close diff --git a/lex.c b/lex.c index 503e41a..1c23212 100644 --- a/lex.c +++ b/lex.c @@ -210,6 +210,11 @@ int yylex(void) while ((c = input()) != '\n' && c != 0) ; unput(c); + /* + * Next line is a hack, itcompensates for + * unput's treatment of \n. + */ + lineno++; break; case ';': RET(';');