gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-732


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-732-g96cc85a
Date: Sat, 15 Aug 2015 18:21:20 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-4.1-stable has been updated
       via  96cc85ac9ba06ab6b9edface5e4c34392a07a98d (commit)
      from  b1edddb5aa803a61991e4f61f5935db97ea22cb8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=96cc85ac9ba06ab6b9edface5e4c34392a07a98d

commit 96cc85ac9ba06ab6b9edface5e4c34392a07a98d
Author: Arnold D. Robbins <address@hidden>
Date:   Sat Aug 15 21:20:56 2015 +0300

    Restore c90 compat in dfa.c.

diff --git a/ChangeLog b/ChangeLog
index fa2dc86..62647c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-15         Arnold D. Robbins     <address@hidden>
+
+       * dfa.c (dfamust): Restore c90 compat by moving some
+       variable declarations to the top of the routine.
+
 2015-08-12         Arnold D. Robbins     <address@hidden>
 
        * dfa.c: Sync with GNU grep. Yet again, again.
diff --git a/dfa.c b/dfa.c
index b0cec2a..8c24534 100644
--- a/dfa.c
+++ b/dfa.c
@@ -3981,6 +3981,8 @@ dfamust (struct dfa const *d)
   bool exact = false;
   bool begline = false;
   bool endline = false;
+  size_t rj;
+  struct dfamust *dm;
 
   for (ri = 0; ri < d->tindex; ++ri)
     {
@@ -4153,7 +4155,7 @@ dfamust (struct dfa const *d)
                 }
             }
 
-          size_t rj = ri + 2;
+          rj = ri + 2;
           if (d->tokens[ri + 1] == CAT)
             {
               for (; rj < d->tindex - 1; rj += 2)
@@ -4184,7 +4186,7 @@ done:
   if (!*result)
     return NULL;
 
-  struct dfamust *dm = xmalloc (sizeof *dm);
+  dm = xmalloc (sizeof *dm);
   dm->exact = exact;
   dm->begline = begline;
   dm->endline = endline;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    5 +++++
 dfa.c     |    6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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