scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

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

[driver] process parameters given after -- as operands

Diffstat:
driver/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();