ref: 3102bca6cc3346fec2531740b1af9bb3729ebc3e
parent: 16fea0810d9d16bf12f0e8e769066ab6522f3d73
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Dec 18 14:12:56 EST 2017
[as] Print proper error messages in gen.awk
--- a/as/target/gen.awk
+++ b/as/target/gen.awk
@@ -151,7 +151,7 @@
} else if (a ~ /^\?$/) {
return out "|AOPT"
} else if (a != "") {
- print "wrong arg", a > "/dev/stderr"
+ print FILENAME ":" NR ":" $0 ":wrong arg", a > "/dev/stderr"
exit 1
}
out = out ","