shithub: trueawk

Download patch

ref: 768d6b58865eb9b0ff5ebd4ef430b767d2108224
parent: 78c79c06d07735d5881ea08cf40e014a41d341af
author: Arnold D. Robbins <arnold@skeeve.com>
date: Fri Jan 31 03:54:10 EST 2020

Get tests working again.

--- a/FIXES
+++ b/FIXES
@@ -28,7 +28,8 @@
 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
--- a/lex.c
+++ b/lex.c
@@ -210,6 +210,11 @@
 			while ((c = input()) != '\n' && c != 0)
 				;
 			unput(c);
+			/*
+			 * Next line is a hack, itcompensates for
+			 * unput's treatment of \n.
+			 */
+			lineno++;
 			break;
 		case ';':
 			RET(';');
--