summaryrefslogtreecommitdiff
path: root/lib/libcurses/underscore.c
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2021-09-06 07:03:49 +0000
committerrin <rin@NetBSD.org>2021-09-06 07:03:49 +0000
commitdd26fe31fefbc337bbdcb04f82870fe2484ed4f6 (patch)
treecf9a84cf31ee5f168a51bb4c924de7a7c522dbc3 /lib/libcurses/underscore.c
parent5ec7355757a731e60692c2b2e376633b173c7f4d (diff)
Expand __CTRACE() to __nothing #ifndef DEBUG.
Remove most of #ifdef DEBUG around __CTRACE() calls. No binary changes, except for line numbers for assert().
Diffstat (limited to 'lib/libcurses/underscore.c')
-rw-r--r--lib/libcurses/underscore.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libcurses/underscore.c b/lib/libcurses/underscore.c
index 080a03dd932..d64f9446f70 100644
--- a/lib/libcurses/underscore.c
+++ b/lib/libcurses/underscore.c
@@ -1,4 +1,4 @@
-/* $NetBSD: underscore.c,v 1.12 2017/01/06 13:53:18 roy Exp $ */
+/* $NetBSD: underscore.c,v 1.13 2021/09/06 07:03:50 rin Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: underscore.c,v 1.12 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: underscore.c,v 1.13 2021/09/06 07:03:50 rin Exp $");
#endif /* not lint */
#include "curses.h"
@@ -76,9 +76,7 @@ wunderscore(WINDOW *win)
if ((enter_underline_mode != NULL && exit_underline_mode != NULL) ||
underline_char != NULL)
{
-#ifdef DEBUG
__CTRACE(__CTRACE_ATTR, "wunderscore\n");
-#endif
win->wattr |= __UNDERSCORE;
}
return 1;
@@ -93,9 +91,7 @@ wunderend(WINDOW *win)
{
if (exit_underline_mode != NULL) {
-#ifdef DEBUG
__CTRACE(__CTRACE_ATTR, "wunderend\n");
-#endif
win->wattr &= ~__UNDERSCORE;
}
return 1;