]> Savannah Git Hosting - gnulib.git/commitdiff
regex: port to C89
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 Dec 2012 06:52:17 +0000 (22:52 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 30 Dec 2012 08:13:15 +0000 (00:13 -0800)
Reported by Aharon Robbins in
<http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
* lib/regcomp.c (init_word_char): Declaration before statement.

ChangeLog
lib/regcomp.c

index 5980ba15eedca69b4721842cca9ddd1739156454..b3e202a2adb0293fb0f6a138faebe5c6145f99ed 100644 (file)
--- 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
index 3e2165b2a944b6c8facdfb964f3ec3cce5918b89..398df66ce47f1dce1a8ca45f2825e64370bd4e31 100644 (file)
@@ -953,10 +953,10 @@ static void
 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;