Source-Changes-HG archive

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

[src/trunk]: src/bin/sh NFC: DEBUG only change - provide an externally visibl...



details:   https://anonhg.NetBSD.org/src/rev/c29657e4b9de
branches:  trunk
changeset: 354826:c29657e4b9de
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Jun 30 23:00:40 2017 +0000

description:
NFC: DEBUG only change - provide an externally visible (to the DEBUG sh
internals) interface to one of the internal (private to trace code) functions

diffstat:

 bin/sh/show.c |  10 ++++++++--
 bin/sh/show.h |   3 ++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r b3acc8f93368 -r c29657e4b9de bin/sh/show.c
--- a/bin/sh/show.c     Fri Jun 30 21:39:43 2017 +0000
+++ b/bin/sh/show.c     Fri Jun 30 23:00:40 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: show.c,v 1.46 2017/06/17 12:16:16 kre Exp $    */
+/*     $NetBSD: show.c,v 1.47 2017/06/30 23:00:40 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.46 2017/06/17 12:16:16 kre Exp $");
+__RCSID("$NetBSD: show.c,v 1.47 2017/06/30 23:00:40 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -302,6 +302,12 @@
        trace_putc('\n', tracetfile);
 }
 
+void
+trargstr(union node *n)
+{
+       sharg(n, tracetfile);
+}
+
 
 /*
  * Beyond here we just have the implementation of all of that
diff -r b3acc8f93368 -r c29657e4b9de bin/sh/show.h
--- a/bin/sh/show.h     Fri Jun 30 21:39:43 2017 +0000
+++ b/bin/sh/show.h     Fri Jun 30 23:00:40 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: show.h,v 1.10 2017/05/13 03:26:03 kre Exp $    */
+/*     $NetBSD: show.h,v 1.11 2017/06/30 23:00:40 kre Exp $    */
 
 /*-
  * Copyright (c) 1995
@@ -39,6 +39,7 @@
 void trace(const char *, ...);
 void tracev(const char *, va_list);
 void trargs(char **);
+void trargstr(union node *);
 void trputc(int);
 void trputs(const char *);
 void opentrace(void);



Home | Main Index | Thread Index | Old Index