[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/8] dfa: remove useless check
From: |
Jim Meyering |
Subject: |
Re: [PATCH 1/8] dfa: remove useless check |
Date: |
Sun, 22 Jan 2012 09:55:31 +0100 |
Paolo Bonzini wrote:
> * src/dfa.c (state_index): There is nothing that is a newline *and*
> a letter. Remove redundant call to SUCCEEDS_IN_CONTEXT.
ACK.
> src/dfa.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/src/dfa.c b/src/dfa.c
> index 8dbadd5..11cb726 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];
- [PATCH 0/8] fix problems with ^ and $ together with \< and \>, Paolo Bonzini, 2012/01/20
- [PATCH 7/8] dfa: fix constraint encoding, Paolo Bonzini, 2012/01/20
- [PATCH 8/8] dfa: merge calls to SUCCEEDS_IN_CONTEXT, Paolo Bonzini, 2012/01/20
- [PATCH 1/8] dfa: remove useless check, Paolo Bonzini, 2012/01/20
- Re: [PATCH 1/8] dfa: remove useless check,
Jim Meyering <=
- [PATCH 2/8] dfa: introduce contexts for the values in d->success, Paolo Bonzini, 2012/01/20
- [PATCH 5/8] dfa: change meaning of a state context, Paolo Bonzini, 2012/01/20
- [PATCH 3/8] dfa: change newline/letter to a single context value, Paolo Bonzini, 2012/01/20
- [PATCH 6/8] dfa: do not use MATCHES_*_CONTEXT directly, Paolo Bonzini, 2012/01/20
- [PATCH 4/8] dfa: refactor common context computations, Paolo Bonzini, 2012/01/20
- Re: [PATCH 0/8] fix problems with ^ and $ together with \< and \>, Paul Eggert, 2012/01/20