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  2c0190b809098530e3281fbc4ed1de44e17a65a3 (commit)
      from  10d25bf1807deea5683986c3c158cff021407b6a (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=2c0190b809098530e3281fbc4ed1de44e17a65a3


commit 2c0190b809098530e3281fbc4ed1de44e17a65a3
Author: Norihiro Tanaka <[email protected]>
Date:   Fri Sep 2 00:41:02 2016 -0700

    dfa: simplify to find state index for state 0
    
    * src/dfa.c (dfastate): Simplify to find state index for state 0.

diff --git a/src/dfa.c b/src/dfa.c
index 00562ea..1a4a90a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -2671,18 +2671,9 @@ dfastate (state_num s, struct dfa *d, state_num trans[])
      is to fail miserably.  */
   if (d->searchflag)
     {
-      /* Find the state(s) corresponding to the positions of state 0.  */
-      copy (&d->states[0].elems, &follows);
-      separate_contexts = state_separate_contexts (&follows);
-      state = state_index (d, &follows, separate_contexts ^ CTX_ANY);
-      if (separate_contexts & CTX_NEWLINE)
-        state_newline = state_index (d, &follows, CTX_NEWLINE);
-      else
-        state_newline = state;
-      if (separate_contexts & CTX_LETTER)
-        state_letter = state_index (d, &follows, CTX_LETTER);
-      else
-        state_letter = state;
+      state_newline = 0;
+      state_letter = d->min_trcount - 1;
+      state = d->initstate_notbol;
 
       for (i = 0; i < NOTCHAR; ++i)
         trans[i] = unibyte_word_constituent (d, i) ? state_letter : state;

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

Summary of changes:
 src/dfa.c |   15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
grep

Reply via email to