changeset 17234:de636633c6cd

regex: port to C89 Reported by Aharon Robbins in <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>. * lib/regcomp.c (init_word_char): Declaration before statement.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 29 Dec 2012 22:52:17 -0800
parents b6b08f30c630
children e101c2620c25
files ChangeLog lib/regcomp.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
 
+	regex: port to C89
+	Reported by Aharon Robbins in
+	<http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
+	* lib/regcomp.c (init_word_char): Declaration before statement.
+
 	regex: merge glibc changes
 	Also, copy the license wording from glibc.  This simplifies
 	merging changes.  gnulib-tool will change the wording to GPL as
--- a/lib/regcomp.c
+++ b/lib/regcomp.c
@@ -953,10 +953,10 @@
 internal_function
 init_word_char (re_dfa_t *dfa)
 {
-  dfa->word_ops_used = 1;
   int i = 0;
   int j;
   int ch = 0;
+  dfa->word_ops_used = 1;
   if (BE (dfa->map_notascii == 0, 1))
     {
       bitset_word_t bits0 = 0x00000000;