regex: remove unnecessary type punning
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Apr 2012 07:56:15 +0000 (00:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Apr 2012 07:56:45 +0000 (00:56 -0700)
commit705a87c9f863825cf8f335bcfcb869eb466da7b4
tree16df67161cca9c19613608c449f0def2b02083a3
parente97d200f70b9bc95a0fc0c6c5ed0bec2cb1a036e
regex: remove unnecessary type punning

Problem reported by Vladimir Serbinenko in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
* lib/regex.h (struct re_pattern_buffer): Change the type of
__REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
Fix comment to match code.
* lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
(re_compile_internal, free_workarea_compile, analyze, lower_subexp)
(parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
* lib/regexec.c (regexec, re_search_stub, re_search_internal)
(set_regs):
Omit no-longer-necessary casts.
ChangeLog
lib/regcomp.c
lib/regex.h
lib/regexec.c