[PATCH 2/2] regex: omit needless signed-pointer casts

2013-01-01 Thread Paul Eggert
* lib/regcomp.c (build_charclass, build_charclass_op): Use char *, not unsigned char *, for class name and extra. The char values are always nonnegative so there's no need to insist on unsigned char * here, and using char * removes the need for casts. Reported by Aharon Robbins in

[PATCH 1/2] regex: support Gawk, which never uses alloca

2013-01-01 Thread Paul Eggert
* lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]: Do not include in this case. Gawk doesn't supply a substitute alloca.h and doesn't need one. --- ChangeLog| 5 + lib/regex_internal.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog inde

Re: [PATCH v4 2/2] git-version-gen: add --fallback option to use if git is not present

2013-01-01 Thread Peter Rosin
Hi Eric, Thanks for the push! On 2012-12-31 23:45, Eric Blake wrote: > On 12/28/2012 03:13 PM, Peter Rosin wrote: >> When building in a git checkout, but from a system lacking git, it >> is useful to fall back to the version determined when the git >> checkout was last used from a system sporting

[PATCH] regex: port __libc_lock_define usage to C89

2013-01-01 Thread Paul Eggert
* lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove. (struct re_dfa_t): Use #ifdef instead. '__libc_lock_define (, lock)' does not conform to C89, as it has an empty macro argument. Reported by Aharon Robbins in . --- ChangeLog