now.
* lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
in wint_t, not wchar_t. Remove now-unnecessary cast.
+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,
-# $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.
#$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
+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.
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
}
# 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