Fix some incompatibilities with gcc -ansi -pedantic.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Nov 2006 07:15:26 +0000 (07:15 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Nov 2006 07:15:26 +0000 (07:15 +0000)
commit564569a4dffe68422c48b486a2e0f377bb4a048d
tree7c71df8f3e4720b8a4abb523d7f6d5f077f5e8aa
parentc916589e351e750d3b6b4ff3acdfb26eb7dda89b
Fix some incompatibilities with gcc -ansi -pedantic.
* lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
if compiling pedantically with GCC, unless it's C99 or later.
Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
it mishandles gcc -ansi -pedantic as well.
* lib/regex_internal.h (re_token_t): Don't use enum bitfields
if gcc -pedantic.
* lib/regexec.c (check_node_accept_bytes): Don't use auto
initializers for struct if -pedantic, unless it's C99 or later.
ChangeLog
lib/regex.h
lib/regex_internal.h
lib/regexec.c