Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config yydebug is now defined only if YYDEBUG is



details:   https://anonhg.NetBSD.org/src/rev/9d25cf745643
branches:  trunk
changeset: 837845:9d25cf745643
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 24 02:07:44 2018 +0000

description:
yydebug is now defined only if YYDEBUG is

diffstat:

 usr.bin/config/main.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d21b1b6ed3ef -r 9d25cf745643 usr.bin/config/main.c
--- a/usr.bin/config/main.c     Sun Dec 23 22:14:29 2018 +0000
+++ b/usr.bin/config/main.c     Mon Dec 24 02:07:44 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.97 2017/11/28 15:31:33 christos Exp $       */
+/*     $NetBSD: main.c,v 1.98 2018/12/24 02:07:44 christos Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.97 2017/11/28 15:31:33 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.98 2018/12/24 02:07:44 christos Exp $");
 
 #ifndef MAKE_BOOTSTRAP
 #include <sys/cdefs.h>
@@ -95,7 +95,7 @@
 
 int    yyparse(void);
 
-#ifndef MAKE_BOOTSTRAP
+#if !defined(MAKE_BOOTSTRAP) && defined(YYDEBUG)
 extern int yydebug;
 #endif
 int    dflag;
@@ -172,7 +172,7 @@
                switch (ch) {
 
                case 'd':
-#ifndef MAKE_BOOTSTRAP
+#if !defined(MAKE_BOOTSTRAP) && defined(YYDEBUG)
                        yydebug = 1;
 #endif
                        dflag++;



Home | Main Index | Thread Index | Old Index