summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-04-01 17:59:29 +0200
committerJim Meyering <meyering@redhat.com>2011-09-16 10:30:38 +0200
commitdd8b2045018dd9b3fcbdb273231e4f517a4a520a (patch)
tree0eb2bf59737407d985d683492a3cd204d72a602b
parent82e4f27a17f1dbb37a3d8ba205a59f7cf507826d (diff)
downloadgrep-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.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dfa.c b/src/dfa.c
index 365ccd37..4c0c2786 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -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);