From ee72886e5403d6d1a64d968b533dda82c08ad652 Mon Sep 17 00:00:00 2001 From: dtrg Date: Sun, 1 Aug 2010 10:35:04 +0000 Subject: [PATCH] Renamed 'switch' variable to avoid conflict with a keyword in modern awks. --- util/ego/share/pop_push.awk | 6 +++--- util/opt/pop_push.awk | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/util/ego/share/pop_push.awk b/util/ego/share/pop_push.awk index 3c9a977c1..7b075fb7c 100644 --- a/util/ego/share/pop_push.awk +++ b/util/ego/share/pop_push.awk @@ -2,13 +2,13 @@ BEGIN { print "char *pop_push[]=" print "{" print "\"\"," - switch = 0 + s = 0 } /aar/ { - switch = 1 + s = 1 } { - if (switch) printf("\"%s\",\n",$3) + if (s) printf("\"%s\",\n",$3) } END { print "};" diff --git a/util/opt/pop_push.awk b/util/opt/pop_push.awk index e5312de20..6f4524828 100644 --- a/util/opt/pop_push.awk +++ b/util/opt/pop_push.awk @@ -2,21 +2,21 @@ BEGIN { print "#include \"pop_push.h\"" print print "char *pop_push[] = {" print "\"\"," - switch = 0 + s = 0 } -/aar/ { switch = NR } - { if (switch) { +/aar/ { s = NR } + { if (s) { if ($1 == "cal" || $1 == "cai") $3 = "-?" printf("/* %s */ \"%s\",\n",$1,$3) - col_2[NR-switch] = $2 - comment[NR-switch] = $1 + col_2[NR-s] = $2 + comment[NR-s] = $1 } } END { print "};" print print "char flow_tab[]= {" print "'\\000'," - for(i=0; i < NR-switch; i++) { + for(i=0; i < NR-s; i++) { inf = col_2[i] f_out = "/* " comment[i] " */ " if (substr(inf,1,1)=="b") f_out = f_out "HASLABEL|"