summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbjj <bjj>2001-03-12 03:44:19 (GMT)
committerbjj <bjj>2001-03-12 03:44:19 (GMT)
commit5036fa0534956f008c2aa41884d1db10a10359b9 (patch)
tree9e48784b80f4f4167a46243e21f764fe998fb6e0
parentb7f3fa669fae753d01d572ce95e5bb18c11ff2d6 (diff)
downloadmoo-cvs-5036fa0534956f008c2aa41884d1db10a10359b9.zip
moo-cvs-5036fa0534956f008c2aa41884d1db10a10359b9.tar.gz
moo-cvs-5036fa0534956f008c2aa41884d1db10a10359b9.tar.bz2
moo-cvs-5036fa0534956f008c2aa41884d1db10a10359b9.tar.xz
oops, more braces
-rw-r--r--regexpr.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/regexpr.c b/regexpr.c
index b002ff8..d100a6f 100644
--- a/regexpr.c
+++ b/regexpr.c
@@ -461,11 +461,12 @@ re_compile_pattern(regex, size, bufp)
abort();
/*NOTREACHED */
case Rbol:
- if (!beginning_context)
+ if (!beginning_context) {
if (regexp_context_indep_ops)
goto op_error;
else
goto normal_char;
+ }
opcode = Cbol;
goto store_opcode;
case Reol:
@@ -477,21 +478,23 @@ re_compile_pattern(regex, size, bufp)
((regexp_syntax & RE_NO_BK_PARENS) ?
(regex[pos] == ')') :
(pos + 1 < size && regex[pos] == '\134' &&
- regex[pos + 1] == ')'))))
+ regex[pos + 1] == ')')))) {
if (regexp_context_indep_ops)
goto op_error;
else
goto normal_char;
+ }
opcode = Ceol;
goto store_opcode;
/* NOTREACHED */
break;
case Roptional:
- if (beginning_context)
+ if (beginning_context) {
if (regexp_context_indep_ops)
goto op_error;
else
goto normal_char;
+ }
if (CURRENT_LEVEL_START == pattern_offset)
break; /* ignore empty patterns for ? */
ALLOC(3);
@@ -500,11 +503,12 @@ re_compile_pattern(regex, size, bufp)
break;
case Rstar:
case Rplus:
- if (beginning_context)
+ if (beginning_context) {
if (regexp_context_indep_ops)
goto op_error;
else
goto normal_char;
+ }
if (CURRENT_LEVEL_START == pattern_offset)
break; /* ignore empty patterns for + and * */
ALLOC(9);
@@ -1643,6 +1647,9 @@ char rcsid_regexpr[] = "$Id";
/*
* $Log$
+ * Revision 1.5 2001/03/12 03:44:19 bjj
+ * oops, more braces
+ *
* Revision 1.4 2001/03/12 03:41:24 bjj
* fix ambiguous else with braces
*