diff options
author | Paul Eggert <[email protected]> | 2011-03-15 11:37:02 -0700 |
---|---|---|
committer | Paul Eggert <[email protected]> | 2011-03-15 11:37:02 -0700 |
commit | 8fb3179241c11eef948f612d959521ac31af1560 (patch) | |
tree | 82c07750e8a92e24c88fa0a2bbdfa9cd3768ee06 /src/regex.c | |
parent | abbd1bcfeca309634cb602bc570f22e232846568 (diff) |
* regex.c (re_match_2_internals): Fix one more "not".
Diffstat (limited to 'src/regex.c')
-rw-r--r-- | src/regex.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/regex.c b/src/regex.c index e79316d6bc..0187a103b3 100644 --- a/src/regex.c +++ b/src/regex.c @@ -5613,8 +5613,8 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const re_char *string1, int if (!not) goto fail; d += len; - break; } + break; /* The beginning of a group is represented by start_memory. @@ -6238,8 +6238,8 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const re_char *string1, int goto fail; d += len; } - break; } + break; #ifdef emacs case before_dot: @@ -6262,18 +6262,21 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const re_char *string1, int case categoryspec: case notcategoryspec: - not = (re_opcode_t) *(p - 1) == notcategoryspec; - mcnt = *p++; - DEBUG_PRINT3 ("EXECUTING %scategoryspec %d.\n", not?"not":"", mcnt); - PREFETCH (); { - int len; - re_wchar_t c; + boolean not = (re_opcode_t) *(p - 1) == notcategoryspec; + mcnt = *p++; + DEBUG_PRINT3 ("EXECUTING %scategoryspec %d.\n", + not?"not":"", mcnt); + PREFETCH (); - GET_CHAR_AFTER (c, d, len); - if ((!CHAR_HAS_CATEGORY (c, mcnt)) ^ not) - goto fail; - d += len; + { + int len; + re_wchar_t c; + GET_CHAR_AFTER (c, d, len); + if ((!CHAR_HAS_CATEGORY (c, mcnt)) ^ not) + goto fail; + d += len; + } } break; |