MCPcopy Create free account
hub / github.com/apache/httpd / inc_rec

Function inc_rec

server/util_expr_eval.c:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 */
75#define AP_EXPR_MAX_RECURSION 20
76static int inc_rec(ap_expr_eval_ctx_t *ctx)
77{
78 if (ctx->reclvl < AP_EXPR_MAX_RECURSION) {
79 ctx->reclvl++;
80 return 0;
81 }
82 *ctx->err = "Recursion limit reached";
83 /* short circuit further evaluation */
84 ctx->reclvl = INT_MAX;
85 return 1;
86}
87
88static const char *ap_expr_eval_word(ap_expr_eval_ctx_t *ctx,
89 const ap_expr_t *node)

Callers 2

ap_expr_eval_wordFunction · 0.85
ap_expr_evalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected