X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=regex.c;h=b2755caecf1639072bc15821049527e374a4b9f1;hp=c6c9850d74db8fe86aff0cd42d72a85d9f0d762e;hb=2743a22ef30aff197b866b9e3547ac429920f6d9;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/regex.c b/regex.c index c6c9850..b2755ca 100644 --- a/regex.c +++ b/regex.c @@ -98,6 +98,7 @@ #include "lisp.h" #include "buffer.h" #include "syntax.h" +#include "lib/str.h" #else /* not emacs */ @@ -2426,11 +2427,13 @@ static reg_errcode_t regex_compile (pattern, size, syntax, bufp) if (syntax & RE_NO_BK_PARENS) goto normal_backslash; - if (COMPILE_STACK_EMPTY) - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) + if (COMPILE_STACK_EMPTY) { + if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) { goto normal_backslash; - else + } else { FREE_STACK_RETURN (REG_ERPAREN); + } + } handle_close: if (fixup_alt_jump) { /* Push a dummy failure point at the end of the @@ -2445,11 +2448,13 @@ static reg_errcode_t regex_compile (pattern, size, syntax, bufp) } /* See similar code for backslashed left paren above. */ - if (COMPILE_STACK_EMPTY) - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) + if (COMPILE_STACK_EMPTY) { + if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) { goto normal_char; - else + } else { FREE_STACK_RETURN (REG_ERPAREN); + } + } /* Since we just checked for an empty stack above, this ``can't happen''. */