Renamed 'switch' variable to avoid conflict with a keyword in modern awks.
This commit is contained in:
@@ -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 "};"
|
||||
|
||||
Reference in New Issue
Block a user