Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Delete the old style (no longer used) DEBUG mode TRAC...



details:   https://anonhg.NetBSD.org/src/rev/d148fd9b61e1
branches:  trunk
changeset: 445212:d148fd9b61e1
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Oct 18 05:28:45 2018 +0000

description:
Delete the old style (no longer used) DEBUG mode TRACE compat macro
definitions (just to avoid any temptation to ever use them again).

Update a comment which would make no sense without following the
preceding comment which is being deleted with the macros it describes.

While here, remove another comment that referred to events that have
long past as if they were still to come.   Also a grammatical comment
correction - paragraphs start with capital letters...

NFC (even with DEBUG defined).

diffstat:

 bin/sh/shell.h |  17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diffs (33 lines):

diff -r bce4f529756c -r d148fd9b61e1 bin/sh/shell.h
--- a/bin/sh/shell.h    Thu Oct 18 05:20:05 2018 +0000
+++ b/bin/sh/shell.h    Thu Oct 18 05:28:45 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: shell.h,v 1.26 2018/07/22 20:38:06 kre Exp $   */
+/*     $NetBSD: shell.h,v 1.27 2018/10/18 05:28:45 kre Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -101,21 +101,10 @@
 #define        DBG_EXTRAS(n)   ((DBG_VBOSE_SHIFT * 2) + (n))
 
 /*
- * Unconditional tracing for compatibility with old tracing setup.
- */
-#define TRACE(param)           do {                                    \
-                                       trace param;                    \
-                               } while (/*CONSTCOND*/ 0)
-#define TRACEV(param)          do {                                    \
-                                       tracev param;                   \
-                               } while (/*CONSTCOND*/ 0)
-
-/*
- * and the newer conditional tracing, so the mainainer can control
+ * Macros to enable tracing, so the mainainer can control
  * just how much debug output is dumped to the trace file
- * (once the rest of the shell is converted to use it).
  *
- * in the X forms, "xtra" can be any legal C statement(s) without (bare) commas
+ * In the X forms, "xtra" can be any legal C statement(s) without (bare) commas
  * executed if the relevant debug flag is enabled, after any tracing output.
  */
 #define CTRACE(when, param)    do {                                    \



Home | Main Index | Thread Index | Old Index