Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 yydebug is now available only if YYDEBUG...



details:   https://anonhg.NetBSD.org/src/rev/cab87790921a
branches:  trunk
changeset: 446877:cab87790921a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 23 19:09:03 2018 +0000

description:
yydebug is now available only if YYDEBUG is set.

diffstat:

 usr.bin/xlint/lint1/main1.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 46988ca67391 -r cab87790921a usr.bin/xlint/lint1/main1.c
--- a/usr.bin/xlint/lint1/main1.c       Sun Dec 23 16:40:15 2018 +0000
+++ b/usr.bin/xlint/lint1/main1.c       Sun Dec 23 19:09:03 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main1.c,v 1.26 2016/12/24 17:43:45 christos Exp $      */
+/*     $NetBSD: main1.c,v 1.27 2018/12/23 19:09:03 christos Exp $      */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: main1.c,v 1.26 2016/12/24 17:43:45 christos Exp $");
+__RCSID("$NetBSD: main1.c,v 1.27 2018/12/23 19:09:03 christos Exp $");
 #endif
 
 #include <sys/types.h>
@@ -241,8 +241,10 @@
        /* initialize output */
        outopen(argv[1]);
 
+#ifdef YYDEBUG
        if (yflag)
                yydebug = 1;
+#endif
 
        (void)signal(SIGFPE, sigfpe);
        initmem();



Home | Main Index | Thread Index | Old Index