Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen use isgraph_l suggested by joerg@
details: https://anonhg.NetBSD.org/src/rev/731effe85859
branches: trunk
changeset: 338475:731effe85859
user: christos <christos%NetBSD.org@localhost>
date: Tue May 26 21:42:46 2015 +0000
description:
use isgraph_l suggested by joerg@
diffstat:
lib/libc/gen/vis.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 0948ae219e05 -r 731effe85859 lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c Tue May 26 21:37:24 2015 +0000
+++ b/lib/libc/gen/vis.c Tue May 26 21:42:46 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.c,v 1.69 2015/05/23 14:21:11 christos Exp $ */
+/* $NetBSD: vis.c,v 1.70 2015/05/26 21:42:46 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -57,7 +57,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.69 2015/05/23 14:21:11 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.70 2015/05/26 21:42:46 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef __FBSDID
__FBSDID("$FreeBSD$");
@@ -98,8 +98,8 @@
#undef BELL
#define BELL L'\a'
-#if defined(__NetBSD__) && defined(_CTYPE_G)
-#define iscgraph(c) ((int)((_C_ctype_tab_ + 1)[(c)] & _CTYPE_G))
+#if defined(LC_C_LOCALE)
+#define iscgraph(c) isgraph_l(c, LC_C_LOCALE)
#else
/* Keep it simple for now, no locale stuff */
#define iscgraph(c) isgraph(c)
Home |
Main Index |
Thread Index |
Old Index