Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses #ifdef HAVE_WCHAR around enhanced curses stuff.
details: https://anonhg.NetBSD.org/src/rev/e421ea5928a5
branches: trunk
changeset: 462142:e421ea5928a5
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Jul 25 20:18:50 2019 +0000
description:
#ifdef HAVE_WCHAR around enhanced curses stuff.
diffstat:
lib/libcurses/attributes.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (69 lines):
diff -r 4a706fa71a69 -r e421ea5928a5 lib/libcurses/attributes.c
--- a/lib/libcurses/attributes.c Thu Jul 25 20:04:41 2019 +0000
+++ b/lib/libcurses/attributes.c Thu Jul 25 20:18:50 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: attributes.c,v 1.30 2018/11/24 01:04:18 uwe Exp $ */
+/* $NetBSD: attributes.c,v 1.31 2019/07/25 20:18:50 uwe Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: attributes.c,v 1.30 2018/11/24 01:04:18 uwe Exp $");
+__RCSID("$NetBSD: attributes.c,v 1.31 2019/07/25 20:18:50 uwe Exp $");
#endif /* not lint */
#include "curses.h"
@@ -43,6 +43,7 @@
#ifndef _CURSES_USE_MACROS
+#ifdef HAVE_WCHAR
/*
* attr_get --
* Get wide attributes and color pair from stdscr
@@ -97,6 +98,7 @@
{
return wcolor_set(stdscr, pair, opts);
}
+#endif /* HAVE_WCHAR */
/*
* attron --
@@ -130,6 +132,8 @@
}
#endif /* _CURSES_USE_MACROS */
+
+#ifdef HAVE_WCHAR
/*
* wattr_get --
* Get wide attributes and colour pair from window
@@ -223,6 +227,8 @@
__wcolor_set(win, (attr_t) COLOR_PAIR(pair));
return OK;
}
+#endif /* HAVE_WCHAR */
+
/*
* getattrs --
@@ -318,6 +324,8 @@
return ch;
}
+
+#ifdef HAVE_WCHAR
/*
* term_attrs --
* Get terminal wide attributes
@@ -367,6 +375,7 @@
return attr;
}
+#endif /* HAVE_WCHAR */
static int
Home |
Main Index |
Thread Index |
Old Index