shithub: scc

Download patch

ref: 848e5ed619c6e3c58f3b4f5c12beace6c8fd4209
parent: 91922108644eb444fd8942da683e1324598942e7
author: Naveen Narayanan zerous <zerous@nocebo.space>
date: Sun May 20 08:17:08 EDT 2018

[as] Small fixes tin gentbl.awk

Remove local variable initialization and fix filename used in
close().

--- a/as/gentbl.awk
+++ b/as/gentbl.awk
@@ -3,7 +3,6 @@
 		printf "#include \"../../../inc/scc.h\"\n"\
 		       "#include \"../../as.h\"\n"\
 		       "#include \"../" family "/proc.h\"\n"
-		nop = 0; nvar = 0
 
 		rules = "target/" family "/rules.dat" 
 		while (getline < rules > 0) {
@@ -10,7 +9,7 @@
 			regex[++nregs] = $1
 			value[nregs] = $2
 		}
-		close("target/rules.awk")
+		close(rules)
 }
 		{sub(/#.*/,"")}