[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 20/34] maint: dfa: convert #if-MBS_SUPPORT (dfastate)
From: |
Jim Meyering |
Subject: |
[PATCH 20/34] maint: dfa: convert #if-MBS_SUPPORT (dfastate) |
Date: |
Thu, 15 Sep 2011 12:28:03 +0200 |
From: Jim Meyering <address@hidden>
* src/dfa.c (dfastate): Use regular "if", not #if MBS_SUPPORT.
---
src/dfa.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/dfa.c b/src/dfa.c
index dd8259c..f245208 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -2578,11 +2578,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);
--
1.7.7.rc0.362.g5a14
- [PATCH 28/34] maint: dfa: avoid in-function "#if MBS_SUPPORT" tests, (continued)
- [PATCH 28/34] maint: dfa: avoid in-function "#if MBS_SUPPORT" tests, Jim Meyering, 2011/09/15
- [PATCH 03/34] maint: convert #if-MBS_SUPPORT (kwsincr_case), Jim Meyering, 2011/09/15
- [PATCH 33/34] maint: dfa: simplify multi-byte-related conditionals, Jim Meyering, 2011/09/15
- [PATCH 25/34] maint: remove #if MBS_SUPPORT around member declaration, Jim Meyering, 2011/09/15
- [PATCH 12/34] maint: dfa: convert #if-MBS_SUPPORT (parse_bracket_exp), Jim Meyering, 2011/09/15
- [PATCH 23/34] tests: make fmbtest explain (to stderr, not log) why it is skipped, Jim Meyering, 2011/09/15
- [PATCH 31/34] tests: skip sjis-mb when dfa.c is compiled without MB support, Jim Meyering, 2011/09/15
- [PATCH 20/34] maint: dfa: convert #if-MBS_SUPPORT (dfastate),
Jim Meyering <=
- [PATCH 24/34] maint: dfa: remove #if MBS_SUPPORT around struct definition, Jim Meyering, 2011/09/15
[PATCH 30/34] maint: dfa: simplify several expressions, Jim Meyering, 2011/09/15