scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 807cd8e3615493acbcf4a4a5273fbfa7acc90e20
parent 3dd71e3263f1e6cca98649a1376c89bb22638c78
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sat,  4 Jun 2016 13:21:47 +0200

[driver] add w flag

And keep scc usage under 80 output columns

Diffstat:
Mdriver/posix/scc.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -353,8 +353,8 @@ build(char *file) static void usage(void) { - die("usage: %s [-E|-kS] [-m arch] [-o binout] [-D macro[=val]]... " - "[-I dir]... file ...", argv0); + die("usage: %s [-E|-kS] [-w] [-m arch] [-o binout]\n" + " [-D macro[=val]]... [-I dir]... file...", argv0); } int @@ -389,6 +389,9 @@ main(int argc, char *argv[]) case 'o': tools[LD].outfile = EARGF(usage()); break; + case 'w': + addarg(CC1, "-w"); + break; case '-': fprintf(stderr, "scc: ignored parameter --%s\n", EARGF(usage()));