bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/6] regex: port to C89


From: Paul Eggert
Subject: [PATCH 2/6] regex: port to C89
Date: Sun, 30 Dec 2012 00:15:38 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

---
 ChangeLog     | 5 +++++
 lib/regcomp.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 5980ba1..b3e202a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-12-29  Paul Eggert  <address@hidden>
 
+       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
diff --git a/lib/regcomp.c b/lib/regcomp.c
index 3e2165b..398df66 100644
--- a/lib/regcomp.c
+++ b/lib/regcomp.c
@@ -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;
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]