diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-09-14 08:30:21 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-09-14 08:30:21 +0000 |
commit | 2a0990bd11f0c886db6c6c0b079f6d47c7fe67c1 (patch) | |
tree | 939f64e964ab04790edf76f06cfd01b410460844 /usr.bin/m4/main.c | |
parent | f8dd25afa5d8e26631cf9b73b406cbf0bce5c7e7 (diff) |
-I works better when activated...
Fuss with prototypes.
Diffstat (limited to 'usr.bin/m4/main.c')
-rw-r--r-- | usr.bin/m4/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c index d613c29d818..857d814a640 100644 --- a/usr.bin/m4/main.c +++ b/usr.bin/m4/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.15 1999/09/14 08:21:37 espie Exp $ */ +/* $OpenBSD: main.c,v 1.16 1999/09/14 08:30:20 espie Exp $ */ /* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.15 1999/09/14 08:21:37 espie Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.16 1999/09/14 08:30:20 espie Exp $"; #endif #endif /* not lint */ @@ -140,7 +140,6 @@ extern char *optarg; void macro(); void initkwds(); -extern int getopt(); int main(argc,argv) @@ -158,7 +157,7 @@ main(argc,argv) initkwds(); initspaces(); - while ((c = getopt(argc, argv, "tD:U:o:")) != -1) + while ((c = getopt(argc, argv, "tD:U:o:I:")) != -1) switch(c) { case 'D': /* define something..*/ @@ -169,6 +168,9 @@ main(argc,argv) *p++ = EOS; dodefine(optarg, p); break; + case 'I': + addtoincludepath(optarg); + break; case 'U': /* undefine... */ remhash(optarg, TOP); break; |