[hackers] [scc] [driver] process parameters given after -- as operands || Quentin Rameau
commit cf5e3057a3c7b72fc5abf0c58b23da4fb168d19c
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Jul 4 16:46:54 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Mon Jul 4 20:36:20 2016 +0200
[driver] process parameters given after -- as operands
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index f82422a..b7f055c 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -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();
Received on Mon Jul 04 2016 - 20:36:48 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 04 2016 - 20:48:40 CEST