[hackers] [scc] [driver] add w flag || Quentin Rameau
 
commit 807cd8e3615493acbcf4a4a5273fbfa7acc90e20
Author:     Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sat Jun 4 13:21:47 2016 +0200
Commit:     Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Jun 7 14:30:03 2016 +0200
    [driver] add w flag
    
    And keep scc usage under 80 output columns
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index 4f0944d..dc4469b 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -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
_AT_@ -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()));
Received on Tue Jun 07 2016 - 14:30:11 CEST
This archive was generated by hypermail 2.3.0
: Tue Jun 07 2016 - 14:36:18 CEST