From 5feb40015695ca27cd3ca51a7c09ca1787fd4483 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 22 Dec 2006 16:27:26 +0000 Subject: [PATCH] Add comments. --- lib/wctype_.h | 16 +++++++++++++--- m4/wctype.m4 | 2 ++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/lib/wctype_.h b/lib/wctype_.h index 11efbbb558..77a68143c5 100644 --- a/lib/wctype_.h +++ b/lib/wctype_.h @@ -18,13 +18,19 @@ /* Written by Bruno Haible and Paul Eggert. */ -/* iswctype, towctrans, towlower, towupper, wctrans, wctype, - wctrans_t, and wctype_t are not yet implemented. */ +/* + * ISO C 99 for platforms that lack it. + * + * + * iswctype, towctrans, towlower, towupper, wctrans, wctype, + * wctrans_t, and wctype_t are not yet implemented. + */ #ifndef _GL_WCTYPE_H #define _GL_WCTYPE_H -/* Tru64 with Desktop Toolkit C has a bug: must be included before +/* Solaris 2.5 has a bug: must be included before . + Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.1 has a bug: and must be included before . */ @@ -32,10 +38,14 @@ #include #include +/* Include the original if it exists. + BeOS 5 has the functions but no . */ #if @HAVE_WCTYPE_H@ # include @ABSOLUTE_WCTYPE_H@ #endif +/* IRIX 5.3 has a bug: its isw* macros reference an undefined variable + _ctmp_. */ #if @HAVE_WCTYPE_CTMP_BUG@ static wint_t _ctmp_; #endif diff --git a/m4/wctype.m4 b/m4/wctype.m4 index 4fd392e97c..357c7a5f98 100644 --- a/m4/wctype.m4 +++ b/m4/wctype.m4 @@ -27,6 +27,8 @@ AC_DEFUN([gl_WCTYPE_H], WCTYPE_H=wctype.h HAVE_WCTYPE_CTMP_BUG=0 if test $ac_cv_header_wctype_h = yes; then + dnl IRIX 5.3 has a bug: its isw* macros reference an undefined variable + dnl _ctmp_. Test against this bug. AC_CACHE_CHECK([whether wctype macros need _ctmp_ declared], [gl_cv_wctype_ctmp_bug], [gl_cv_wctype_ctmp_bug=no -- 2.30.2