Module Name: src
Committed By: kre
Date: Fri Jun 30 23:00:40 UTC 2017
Modified Files:
src/bin/sh: show.c show.h
Log Message:
NFC: DEBUG only change - provide an externally visible (to the DEBUG sh
internals) interface to one of the internal (private to trace code) functions
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/bin/sh/show.c
cvs rdiff -u -r1.10 -r1.11 src/bin/sh/show.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/show.c
diff -u src/bin/sh/show.c:1.46 src/bin/sh/show.c:1.47
--- src/bin/sh/show.c:1.46 Sat Jun 17 12:16:16 2017
+++ src/bin/sh/show.c Fri Jun 30 23:00:40 2017
@@ -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 @@ trargs(char **ap)
trace_putc('\n', tracetfile);
}
+void
+trargstr(union node *n)
+{
+ sharg(n, tracetfile);
+}
+
/*
* Beyond here we just have the implementation of all of that
Index: src/bin/sh/show.h
diff -u src/bin/sh/show.h:1.10 src/bin/sh/show.h:1.11
--- src/bin/sh/show.h:1.10 Sat May 13 03:26:03 2017
+++ src/bin/sh/show.h Fri Jun 30 23:00:40 2017
@@ -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 showtree(union node *);
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);