c-ctype, regex, verify: port to gcc -std=c90 -pedantic
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 May 2013 01:48:09 +0000 (18:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 May 2013 01:50:54 +0000 (18:50 -0700)
commit96a263f7953ec80851c81f3a1f40127600b7ea7b
tree0c2303d2a1b216eae8e665badb7c4f4fdfec65f3
parent55ba71f47850fbd870cb08bac1cf992f1368295e
c-ctype, regex, verify: port to gcc -std=c90 -pedantic

Avoid constructions that are rejected by gcc -std=c90 -pedantic.
This fixes a porting bug I recently reintroduced in regex, and
some other instances that I discovered while testing the fix.
* lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
* lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
* lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
with an empty argument if this is a pedantic pre-C99 GCC.
* lib/verify.h: Do not use _Static_assert if this is a pedantic
pre-C11 GCC.
ChangeLog
lib/c-ctype.h
lib/regcomp.c
lib/regex_internal.h
lib/verify.h