| 74 | */ |
| 75 | #define AP_EXPR_MAX_RECURSION 20 |
| 76 | static 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 | |
| 88 | static const char *ap_expr_eval_word(ap_expr_eval_ctx_t *ctx, |
| 89 | const ap_expr_t *node) |
no outgoing calls
no test coverage detected