summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-12-02 18:05:53 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-12-02 18:05:53 +0000
commiteb4412931b657e639bc5e8805694482feb9de498 (patch)
treeb0a2e1a50237f73a529695703fa5c459bea31adc /usr.bin
parent6e810003a432609fd7b1781ff23315d009df67c1 (diff)
Add a -y option, undocumented for now, that tells lint to pass -y to lint1.
The -y option tells lint1 to output yacc debug information (if it was compiled with YYDEBUG=1).
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/xlint/xlint/xlint.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c
index ff6f7059166..fa291fed5df 100644
--- a/usr.bin/xlint/xlint/xlint.c
+++ b/usr.bin/xlint/xlint/xlint.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xlint.c,v 1.22 2005/12/02 09:07:10 grunk Exp $ */
+/* $OpenBSD: xlint.c,v 1.23 2005/12/02 18:05:52 cloder Exp $ */
/* $NetBSD: xlint.c,v 1.3 1995/10/23 14:29:30 jpo Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: xlint.c,v 1.22 2005/12/02 09:07:10 grunk Exp $";
+static char rcsid[] = "$OpenBSD: xlint.c,v 1.23 2005/12/02 18:05:52 cloder Exp $";
#endif
#include <sys/param.h>
@@ -346,7 +346,7 @@ main(int argc, char *argv[])
(void)signal(SIGTERM, terminate);
while (argc > optind) {
- c = getopt(argc, argv, "abceghil:no:prstuvxzC:D:FHI:L:U:V");
+ c = getopt(argc, argv, "abceghil:no:prstuvxyzC:D:FHI:L:U:V");
switch (c) {
@@ -357,6 +357,7 @@ main(int argc, char *argv[])
case 'g':
case 'r':
case 'v':
+ case 'y':
case 'z':
(void)snprintf(flgbuf, sizeof flgbuf, "-%c", c);
appcstrg(&l1flags, flgbuf);