Renamed 'switch' variable to avoid conflict with a keyword in modern awks.

This commit is contained in:
dtrg
2010-08-01 10:35:04 +00:00
parent 2c54f8c742
commit ee72886e54
2 changed files with 9 additions and 9 deletions

View File

@@ -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 "};"