grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.25-15-g3ddf995


From: Paul Eggert
Subject: grep branch, master, updated. v2.25-15-g3ddf995
Date: Thu, 2 Jun 2016 22:49:20 +0000 (UTC)

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 "grep".

The branch, master has been updated
       via  3ddf995f9c9651d8ca8a6d23655e956cb807fb36 (commit)
      from  3d5b898958b922995935f5d803c271696d127a8a (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.savannah.gnu.org/cgit/grep.git/commit/?id=3ddf995f9c9651d8ca8a6d23655e956cb807fb36


commit 3ddf995f9c9651d8ca8a6d23655e956cb807fb36
Author: Norihiro Tanaka <address@hidden>
Date:   Thu Jun 2 15:48:56 2016 -0700

    dfa: more simplification of dfaexec_main
    
    * src/dfa.c (dfaexec_main): Failure at an acceptable position and demand
    to build state is unlikely.  So go next loop without checking them after
    a newline.  This commit induces no semantic change.

diff --git a/src/dfa.c b/src/dfa.c
index c57b33a..4e47b39 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3372,8 +3372,7 @@ dfaexec_main (struct dfa *d, char const *begin, char 
*end, bool allow_nl,
 
           s = allow_nl ? d->newlines[s1] : 0;
         }
-
-      if (d->fails[s])
+      else if (d->fails[s])
         {
           if (d->success[s] & sbit[*p])
             goto done;
@@ -3386,8 +3385,7 @@ dfaexec_main (struct dfa *d, char const *begin, char 
*end, bool allow_nl,
         }
       else
         {
-          if (!d->trans[s])
-            build_state (s, d);
+          build_state (s, d);
           trans = d->trans;
         }
     }

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

Summary of changes:
 src/dfa.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

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