scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 8bffa629e3ea3310865367c3d646ab72168fcbdb
parent d259624d7eb89c684fc0fdbeecb81f98488263c4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  8 Jan 2019 16:12:22 +0000

[ranlib] Add TODO for t flag

Diffstat:
Msrc/cmd/ranlib.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/cmd/ranlib.c b/src/cmd/ranlib.c @@ -19,7 +19,7 @@ struct name { Name *hash, *next; }; -static int status; +static int status, tflag; static char *filename, *membname; static Name *htab[NR_NAMES], *head; static long offset; @@ -253,7 +253,7 @@ ranlib(char *fname) static void usage(void) { - fputs("usage: ranlib [file...]\n", stderr); + fputs("usage: ranlib [-t] [file...]\n", stderr); exit(EXIT_FAILURE); } @@ -261,6 +261,9 @@ int main(int argc, char *argv[]) { ARGBEGIN { + case 't': + tflag = 1; /* TODO */ + break; default: usage(); } ARGEND