Commit 9e4b4fd2 authored by Stefan Fritsch's avatar Stefan Fritsch
Browse files

clarify comment

remove broken recursion counting bits


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1204090 13f79535-47bb-0310-9956-ffa450edef68
parent f67bbe8e
Loading
Loading
Loading
Loading
+2 −4
Changes for server/util_expr_eval.c: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -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;
                    }