Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Remove a DEBUG mode transition mechanism (for the tra...



details:   https://anonhg.NetBSD.org/src/rev/5d7cddd0c3d7
branches:  trunk
changeset: 445208:5d7cddd0c3d7
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Oct 18 04:44:27 2018 +0000

description:
Remove a DEBUG mode transition mechanism (for the transition from
the ancient DEBUG TRACE() method, to the newer CTRACE() et. al.)
that turns out never really needed committing - the mechanism, and
the code that obsoleted it, were committed together (May 2017).
[It was useful to me while getting to that state...]

NFC.   Not even with DEBUG shells.

diffstat:

 bin/sh/show.c |  19 ++-----------------
 1 files changed, 2 insertions(+), 17 deletions(-)

diffs (40 lines):

diff -r b94256052c51 -r 5d7cddd0c3d7 bin/sh/show.c
--- a/bin/sh/show.c     Thu Oct 18 04:29:44 2018 +0000
+++ b/bin/sh/show.c     Thu Oct 18 04:44:27 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: show.c,v 1.49 2018/08/19 10:47:45 kre Exp $    */
+/*     $NetBSD: show.c,v 1.50 2018/10/18 04:44:27 kre Exp $    */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)show.c     8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: show.c,v 1.49 2018/08/19 10:47:45 kre Exp $");
+__RCSID("$NetBSD: show.c,v 1.50 2018/10/18 04:44:27 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -68,21 +68,6 @@
 #include "var.h"
 #include "builtins.h"
 
-#if defined(DEBUG) && !defined(DBG_PID)
-/*
- * If this is compiled, it means this is being compiled in a shell that still
- * has an older shell.h (a simpler TRACE() mechanism than is coming soon.)
- *
- * Compensate for as much of that as is missing and is needed here
- * to compile and operate at all.   After the other changes have appeared,
- * this little block can (and should be) deleted (sometime).
- *
- * Try to avoid waiting 22 years...
- */
-#define        DBG_PID         1
-#define        DBG_NEST        2
-#endif
-
 #define DEFINE_NODENAMES
 #include "nodenames.h"         /* does almost nothing if !defined(DEBUG) */
 



Home | Main Index | Thread Index | Old Index