scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit a16ab97fceed9531229af973a5bf5eb8377e0d31
parent 307e57033e2b0dfde133c57ac5e0291e4d6c25d4
Author: Naveen Narayanan zerous <zerous@nocebo.space>
Date:   Sun, 20 May 2018 12:17:08 +0300

[as] Small fixes tin gentbl.awk

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

Diffstat:
Mas/gentbl.awk | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/as/gentbl.awk b/as/gentbl.awk @@ -3,14 +3,13 @@ BEGIN { 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) { regex[++nregs] = $1 value[nregs] = $2 } - close("target/rules.awk") + close(rules) } {sub(/#.*/,"")}