[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wctype.h port to IRIX 5.3
From: |
Paul Eggert |
Subject: |
wctype.h port to IRIX 5.3 |
Date: |
Thu, 04 Jan 2007 11:23:24 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
I installed this to make it easier to port wctype.h to IRIX 5.3.
2007-01-04 Paul Eggert <address@hidden>
* lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
* m4/wctype.m4 (gl_WCTYPE_H): Likewise.
Problems reported by Georg Schwarz for IRIX 5.3.
Index: lib/wctype_.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/wctype_.h,v
retrieving revision 1.3
diff -u -p -r1.3 wctype_.h
--- lib/wctype_.h 24 Dec 2006 07:55:08 -0000 1.3
+++ lib/wctype_.h 4 Jan 2007 19:21:02 -0000
@@ -49,10 +49,11 @@ typedef int __wctype_wint_t;
# include @ABSOLUTE_WCTYPE_H@
#endif
-/* IRIX 5.3 has a bug: its isw* macros reference an undefined variable
- _ctmp_. */
+/* IRIX 5.3 has bugs: its isw* macros refer to an undefined variable
+ _ctmp_ and to <ctype.h> macros like _P. */
#if @HAVE_WCTYPE_CTMP_BUG@
-static wint_t _ctmp_;
+# include <ctype.h>
+wchar_t _ctmp_;
#endif
/* FreeBSD 4.4 to 4.11 has <wctype.h> but lacks the functions.
Index: m4/wctype.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/wctype.m4,v
retrieving revision 1.3
diff -u -p -r1.3 wctype.m4
--- m4/wctype.m4 24 Dec 2006 07:55:08 -0000 1.3
+++ m4/wctype.m4 4 Jan 2007 19:21:02 -0000
@@ -44,7 +44,8 @@ AC_DEFUN([gl_WCTYPE_H],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <wctype.h>
- static wint_t _ctmp_;]],
+ #include <ctype.h>
+ wchar_t _ctmp_;]],
[[return iswprint (0);]])],
[gl_cv_wctype_ctmp_bug=yes])])])
case $gl_cv_wctype_ctmp_bug,$ac_cv_func_iswcntrl in #(
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- wctype.h port to IRIX 5.3,
Paul Eggert <=