diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-01 17:59:29 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-09-16 10:30:38 +0200 |
commit | dd8b2045018dd9b3fcbdb273231e4f517a4a520a (patch) | |
tree | 0eb2bf59737407d985d683492a3cd204d72a602b | |
parent | 82e4f27a17f1dbb37a3d8ba205a59f7cf507826d (diff) | |
download | grep-dd8b2045018dd9b3fcbdb273231e4f517a4a520a.tar.gz |
maint: dfa: convert #if-MBS_SUPPORT (parse_bracket_exp)
* src/dfa.c (parse_bracket_exp): Use regular "if", not #if MBS_SUPPORT.
-rw-r--r-- | src/dfa.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1057,21 +1057,17 @@ parse_bracket_exp (void) if (colon_warning_state == 7) dfawarn (_("character class syntax is [[:space:]], not [:space:]")); -#if MBS_SUPPORT - if (MB_CUR_MAX > 1) + if (MBS_SUPPORT && MB_CUR_MAX > 1) { static charclass zeroclass; work_mbc->invert = invert; work_mbc->cset = equal(ccl, zeroclass) ? -1 : charclass_index(ccl); return MBCSET; } -#endif if (invert) { -#if MBS_SUPPORT - assert(MB_CUR_MAX == 1); -#endif + assert(!MBS_SUPPORT || MB_CUR_MAX == 1); notset(ccl); if (syntax_bits & RE_HAT_LISTS_NOT_NEWLINE) clrbit(eolbyte, ccl); |