grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.10-67-gba63674


From: Paolo Bonzini
Subject: grep branch, master, updated. v2.10-67-gba63674
Date: Sun, 05 Feb 2012 16:28:30 +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 "grep".

The branch, master has been updated
       via  ba63674a816d93ee4a69d0c78a34a7d9b391d33b (commit)
      from  75b74e442f993c03e6af8b9e2e74cd657e6cce14 (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=ba63674a816d93ee4a69d0c78a34a7d9b391d33b


commit ba63674a816d93ee4a69d0c78a34a7d9b391d33b
Author: Paolo Bonzini <address@hidden>
Date:   Tue Jan 3 11:22:09 2012 +0100

    dfa: remove useless check
    
    * src/dfa.c (state_index): There is nothing that is a newline *and*
    a letter.  Remove redundant call to SUCCEEDS_IN_CONTEXT.

diff --git a/src/dfa.c b/src/dfa.c
index 6ab0ab4..ac3fb18 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -1964,8 +1964,7 @@ state_index (struct dfa *d, position_set const *s, int 
newline, int letter)
         constraint = s->elems[j].constraint;
         if (SUCCEEDS_IN_CONTEXT(constraint, newline, 0, letter, 0)
             || SUCCEEDS_IN_CONTEXT(constraint, newline, 0, letter, 1)
-            || SUCCEEDS_IN_CONTEXT(constraint, newline, 1, letter, 0)
-            || SUCCEEDS_IN_CONTEXT(constraint, newline, 1, letter, 1))
+            || SUCCEEDS_IN_CONTEXT(constraint, newline, 1, letter, 0))
           d->states[i].constraint |= constraint;
         if (! d->states[i].first_end)
           d->states[i].first_end = d->tokens[s->elems[j].index];

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

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


hooks/post-receive
-- 
grep



reply via email to

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