diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-05 10:40:05 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-09-16 10:30:39 +0200 |
commit | 0e5c7a931c68720f57f685501f18f50bcb0912a8 (patch) | |
tree | 15aa7b28040010520cddb2b259065ae84b9975f0 | |
parent | 4a6766f27f65d1f492ca9f4e7667c0e12160bf0a (diff) | |
download | grep-0e5c7a931c68720f57f685501f18f50bcb0912a8.tar.gz |
maint: dfa: convert #if-MBS_SUPPORT (dfastate)
* src/dfa.c (dfastate): Use regular "if", not #if MBS_SUPPORT.
-rw-r--r-- | src/dfa.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -2572,11 +2572,9 @@ dfastate (int s, struct dfa *d, int trans[]) /* If we are building a searching matcher, throw in the positions of state 0 as well. */ -#if MBS_SUPPORT - if (d->searchflag && (d->mb_cur_max == 1 || !next_isnt_1st_byte)) -#else - if (d->searchflag) -#endif + if (d->searchflag + && (! MBS_SUPPORT + || (d->mb_cur_max == 1 || !next_isnt_1st_byte))) for (j = 0; j < d->states[0].elems.nelem; ++j) insert(d->states[0].elems.elems[j], &follows); |