scc

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

commit cf5e3057a3c7b72fc5abf0c58b23da4fb168d19c
parent c35a7cc631f65c8834a7ff12154bb0c2a8a63733
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon,  4 Jul 2016 16:46:54 +0200

[driver] process parameters given after -- as operands

Diffstat:
Mdriver/posix/scc.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -474,9 +474,13 @@ main(int argc, char *argv[]) default: usage(); } ARGOPERAND { +operand: newitem(&linkchain, ARGOP()); } ARGEND + for (; *argv; --argc, ++argv) + goto operand; + if (Eflag && (Sflag || kflag) || linkchain.n == 0 || linkchain.n > 1 && cflag && outfile) usage();