[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/34] maint: dfa: convert #if-MBS_SUPPORT (dfafree)
From: |
Jim Meyering |
Subject: |
[PATCH 07/34] maint: dfa: convert #if-MBS_SUPPORT (dfafree) |
Date: |
Thu, 15 Sep 2011 12:27:50 +0200 |
From: Jim Meyering <address@hidden>
* src/dfa.c (dfafree): Use regular "if", not #if MBS_SUPPORT.
---
src/dfa.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/dfa.c b/src/dfa.c
index 1c6784f..2c72d88 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3516,16 +3516,13 @@ dfafree (struct dfa *d)
free(d->charclasses);
free(d->tokens);
-#if MBS_SUPPORT
- if (d->mb_cur_max > 1)
+ if (MBS_SUPPORT && d->mb_cur_max > 1)
free_mbdata(d);
-#endif /* MBS_SUPPORT */
for (i = 0; i < d->sindex; ++i) {
free(d->states[i].elems.elems);
-#if MBS_SUPPORT
- free(d->states[i].mbps.elems);
-#endif /* MBS_SUPPORT */
+ if (MBS_SUPPORT)
+ free(d->states[i].mbps.elems);
}
free(d->states);
for (i = 0; i < d->tindex; ++i)
--
1.7.7.rc0.362.g5a14
[PATCH 02/34] maint: convert #if-MBS_SUPPORT (Fcompile, etc.), Jim Meyering, 2011/09/15
[PATCH 07/34] maint: dfa: convert #if-MBS_SUPPORT (dfafree),
Jim Meyering <=
[PATCH 09/34] maint: dfa: convert #if-MBS_SUPPORT (free_mbdata), Jim Meyering, 2011/09/15
[PATCH 06/34] maint: dfa: convert #if-MBS_SUPPORT (parse_bracket_exp, part1), Jim Meyering, 2011/09/15
[PATCH 10/34] maint: dfa: convert #if-MBS_SUPPORT (dfaexec), Jim Meyering, 2011/09/15
[PATCH 16/34] maint: dfa: convert #if-MBS_SUPPORT (copytoks), Jim Meyering, 2011/09/15
[PATCH 17/34] maint: dfa: convert #if-MBS_SUPPORT (dfaparse), Jim Meyering, 2011/09/15