NFC: DEBUG only change - provide an externally visible (to the DEBUG sh
internals) interface to one of the internal (private to trace code) functions
This commit is contained in:
parent
285444fdfa
commit
19986c5f4a
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue