]> granicus.if.org Git - apache/commitdiff
clarify comment
authorStefan Fritsch <sf@apache.org>
Sat, 19 Nov 2011 22:06:16 +0000 (22:06 +0000)
committerStefan Fritsch <sf@apache.org>
Sat, 19 Nov 2011 22:06:16 +0000 (22:06 +0000)
remove broken recursion counting bits

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1204090 13f79535-47bb-0310-9956-ffa450edef68

server/util_expr_eval.c

index 6547d7b9d3e36b598a07650d1a6cf214b7981268..81143e5ac4989b84bd030a8f899215b53b9f1703 100644 (file)
@@ -58,8 +58,8 @@ static void expr_dump_tree(const ap_expr_t *e, const server_rec *s,
 
 /*
  * To reduce counting overhead, we only count calls to
- * ap_expr_eval_word() and ap_expr_eval(). This means the actual
- * recursion may be twice as deep.
+ * ap_expr_eval_word() and ap_expr_eval(). The max number of
+ * stack frames is larger by some factor.
  */
 #define AP_EXPR_MAX_RECURSION   20
 static int inc_rec(ap_expr_eval_ctx_t *ctx)
@@ -711,7 +711,6 @@ static int ap_expr_eval(ap_expr_eval_ctx_t *ctx, const ap_expr_t *node)
             result ^= TRUE;
             goto out;
         case op_False:
-            ctx->reclvl--;
             result ^= FALSE;
             goto out;
         case op_Not:
@@ -728,7 +727,6 @@ static int ap_expr_eval(ap_expr_eval_ctx_t *ctx, const ap_expr_t *node)
                 }
                 else {
                     if (ap_expr_eval(ctx, e1)) {
-                        ctx->reclvl--;
                         result ^= TRUE;
                         goto out;
                     }