No longer generates zero bytes in the script's output file.

This commit is contained in:
dtrg 2006-07-18 17:20:05 +00:00
parent 9ca41cf4b6
commit 1ed24cab9b

View file

@ -15,14 +15,14 @@ BEGIN { print "#include \"pop_push.h\""
END { print "};" END { print "};"
print print
print "char flow_tab[]= {" print "char flow_tab[]= {"
print "'\000'," print "'\\000',"
for(i=0; i < NR-switch; i++) { for(i=0; i < NR-switch; i++) {
inf = col_2[i] inf = col_2[i]
f_out = "/* " comment[i] " */ " f_out = "/* " comment[i] " */ "
if (substr(inf,1,1)=="b") f_out = f_out "HASLABEL|" if (substr(inf,1,1)=="b") f_out = f_out "HASLABEL|"
if (substr(inf,2,1)=="c") f_out = f_out "CONDBRA" if (substr(inf,2,1)=="c") f_out = f_out "CONDBRA"
else if (substr(inf,2,1)=="t") f_out = f_out "JUMP" else if (substr(inf,2,1)=="t") f_out = f_out "JUMP"
else f_out = f_out "'\000'" else f_out = f_out "'\\000'"
print f_out"," print f_out","
} }
print "};" print "};"