patch for regex_internal.c bogus warnings

2005-08-19 Thread Paul Eggert
I installed this, imported from coreutils. I filed glibc bug 1218. 2005-08-19 Paul Eggert <[EMAIL PROTECTED]> * lib/regex_internal.c (re_acquire_state, re_acquire_state_context) [defined lint]: Suppress bogus uninitialized-variable warnings. * config/srclist.text: Add g

lib/regcomp.c patch to avoid uninitialized-variable warning

2005-08-19 Thread Paul Eggert
I installed this into gnulib, and filed a glibc bug report: 2005-08-19 Paul Eggert <[EMAIL PROTECTED]> * config/srclist.txt: Add glibc bug 1217 for regcomp.c. * lib/regcomp.c (duplicate_node): Return new index, not an error code, and let the caller return REG_ESPACE if o

lib/regexec.c patch to avoid shadowing warning

2005-08-19 Thread Paul Eggert
I installed this patch, taken from coreutils. I also filed a glibc bug report. 2005-08-19 Jim Meyering <[EMAIL PROTECTED]> * lib/regexec.c (proceed_next_node): Redo local variables to avoid GCC shadowing warnings. 2005-08-19 Paul Eggert <[EMAIL PROTECTED]> * config/

regex_internal.c patch to avoid warnings with gcc -Wshadow

2005-08-19 Thread Paul Eggert
I installed this, adapted from coreutils. I also filed glibc bug 1215 to merge it back into glibc. 2005-08-19 Paul Eggert <[EMAIL PROTECTED]> * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c. * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert

Re: [bug-gnulib] regex warnings on linux

2005-08-19 Thread Bruno Haible
Sam Steingold wrote: > fc4: > > In file included from regex.c:86: > regcomp.c: In function 'regerror': > regcomp.c:563: warning: implicit declaration of function 'mempcpy' > regcomp.c:563: warning: incompatible implicit declaration of built-in > function ' mempcpy' > regcomp.c: In function 'build_

Re: strcasestr module

2005-08-19 Thread Bruno Haible
I added this bugfix to the new strstr and strcasestr implementations. diff -c -3 -r1.1 strcasestr.c *** strcasestr.c17 Aug 2005 14:09:19 - 1.1 --- strcasestr.c19 Aug 2005 11:00:06 - *** *** 88,94 { if (!mbui_av

FYI: strftime.c fix obscure %s formatting bug

2005-08-19 Thread Jim Meyering
FYI, I've just checked in this change: 2005-08-17 Jim Meyering <[EMAIL PROTECTED]> Make the %s format (seconds since the epoch) work for a negative number and when used with a zero-padded field width, e.g. %015s. * strftime.c (my_strftime): Move the `do_number_sign_and_