diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dfa.c | 6 |
2 files changed, 6 insertions, 4 deletions
@@ -1,3 +1,7 @@ +2016-06-05 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c: Sync with GNU grep. + 2016-06-01 Arnold D. Robbins <arnold@skeeve.com> * nonposix.h (getpgrp): Wrap declaration in ifdef so it doesn't @@ -3411,8 +3411,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; @@ -3425,8 +3424,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; } } |