scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 417a9c29842043f30884372e9efa88035d8c8266
parent ed2f4783daacdcb600ec37e5ace2e5bf21313c54
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 18 Dec 2017 19:12:56 +0100

[as] Print proper error messages in gen.awk

Diffstat:
Mas/target/gen.awk | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/as/target/gen.awk b/as/target/gen.awk @@ -151,7 +151,7 @@ function str2args(s, args, i, out, n) } 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 ","