* config/srclist.txt: Comment out regcomp.c, since we have a porting fix
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Jul 2005 17:57:01 +0000 (17:57 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Jul 2005 17:57:01 +0000 (17:57 +0000)
now.
* lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
in wint_t, not wchar_t.  Remove now-unnecessary cast.

config/ChangeLog
config/srclist.txt
lib/ChangeLog
lib/regcomp.c

index 79cfdcf6ef92607b87b14b095fa7593a37544d13..16ceb4b789b716c9491a289090b7bec5dd788e28 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * srclist.txt: Comment out regcomp.c, since we have a porting fix
+       now.
+
 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
 
        * srclist.txt: Add regcomp.c, regex.c, regex.h, regex_internal.c,
index 52ec0af0b71bfdc14ce3b4dbc23f5109be8a5a1c..c1b88676e2df62265773950eba8a436417c7b9dd 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.65 2005-07-07 08:08:39 eggert Exp $
+# $Id: srclist.txt,v 1.66 2005-07-08 17:57:01 eggert Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -93,11 +93,12 @@ $LIBCSRC/stdlib/getsubopt.c         lib gpl
 #$LIBCSRC/posix/getopt.h               lib gpl (getopt_.h in gnulib)
 #$LIBCSRC/posix/getopt1.c              lib gpl
 #$LIBCSRC/posix/getopt_int.h           lib gpl
-$LIBCSRC/posix/regcomp.c               lib gpl
+# regcomp.c contains a porting fix
+#$LIBCSRC/posix/regcomp.c              lib gpl
 $LIBCSRC/posix/regex.c                 lib gpl
 $LIBCSRC/posix/regex.h                 lib gpl
 $LIBCSRC/posix/regex_internal.c                lib gpl
-# regex_internal.h contains a porting fix (glibc defines __mempcpy)
+# regex_internal.h contains a porting fix
 #$LIBCSRC/posix/regex_internal.h               lib gpl
 $LIBCSRC/posix/regexec.c               lib gpl
 # c89 changes $LIBCSRC/string/strdup.c         lib gpl
index 168ceaa1be654ff061b491e909bef90e5f421939..eae373198411fbdedba441084016f59233da702b 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
+       and  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * regcomp.c (init_dfa, build_range_exp): Store __btowc value
+       in wint_t, not wchar_t.  Remove now-unnecessary cast.
+
 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
 
        * regex.c, regex.h: Sync from libc.
index 9feac9fc450033d577d9a2bf20d8796ae41e6301..ea9393405553201b437eba8066a63b7f990fe102 100644 (file)
@@ -917,11 +917,11 @@ init_dfa (dfa, pat_len)
          for (i = 0, ch = 0; i < BITSET_UINTS; ++i)
            for (j = 0; j < UINT_BITS; ++j, ++ch)
              {
-               wchar_t wch = __btowc (ch);
+               wint_t wch = __btowc (ch);
                if (wch != WEOF)
                  dfa->sb_char[i] |= 1 << j;
 # ifndef _LIBC
-               if (isascii (ch) && wch != (wchar_t) ch)
+               if (isascii (ch) && wch != ch)
                  dfa->map_notascii = 1;
 # endif
              }
@@ -2682,7 +2682,8 @@ build_range_exp (sbcset, start_elem, end_elem)
 
 # ifdef RE_ENABLE_I18N
   {
-    wchar_t wc, start_wc, end_wc;
+    wchar_t wc;
+    wint_t start_wc, end_wc;
     wchar_t cmp_buf[6] = {L'\0', L'\0', L'\0', L'\0', L'\0', L'\0'};
 
     start_ch = ((start_elem->type == SB_CHAR) ? start_elem->opr.ch