* regex.c (regex_compile): Warning fix for ambiguous else.

This commit is contained in:
Pavel Roskin 2001-08-19 16:18:40 +00:00
parent efe396e30e
commit 680d7fd55c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-08-19 Pavel Roskin <proski@gnu.org>
* regex.c (regex_compile): Warning fix for ambiguous else.
2001-08-18 Pavel Roskin <proski@gnu.org>
* key.c (xmouse_get_event): Filter out GPM_UP events that don't

View File

@ -2198,11 +2198,12 @@ regex_compile (pattern, size, syntax, bufp)
case ')':
if (syntax & RE_NO_BK_PARENS) goto normal_backslash;
if (COMPILE_STACK_EMPTY)
if (COMPILE_STACK_EMPTY) {
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
goto normal_backslash;
else
FREE_STACK_RETURN (REG_ERPAREN);
}
handle_close:
if (fixup_alt_jump)
@ -2218,11 +2219,12 @@ regex_compile (pattern, size, syntax, bufp)
}
/* See similar code for backslashed left paren above. */
if (COMPILE_STACK_EMPTY)
if (COMPILE_STACK_EMPTY) {
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
goto normal_char;
else
FREE_STACK_RETURN (REG_ERPAREN);
}
/* Since we just checked for an empty stack above, this
``can't happen''. */