[hackers] [scc] [driver] add support for building multiple files || Quentin Rameau

From: <git_AT_suckless.org>
Date: Thu, 2 Jun 2016 18:27:00 +0200 (CEST)

commit 34a73222efca993ba7e86a283640b8b51bfa893c
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Jun 2 16:13:00 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu Jun 2 18:23:35 2016 +0200

    [driver] add support for building multiple files

diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index 264b75d..4301b46 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -123,7 +123,7 @@ settool(int tool, char *input, int output)
 
         switch (tool) {
         case CC1:
- ADDARG(tool, input);
+ t->args[1] = input;
                 break;
         case TEE:
                 switch (output) {
_AT_@ -285,7 +285,8 @@ main(int argc, char *argv[])
         if (!argc)
                 die("scc: fatal error: no input files");
 
- build(*argv);
+ for (; *argv; ++argv)
+ build(*argv);
 
         return 0;
 }
Received on Thu Jun 02 2016 - 18:27:00 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 02 2016 - 18:36:17 CEST