* @return the value the expression parsed to
*/
AP_DECLARE(int) ap_expr_eval(request_rec *r, parse_node_t *root,
- int *was_error, backref_t **reptr,
+ int *was_error, backref_t **reptr,
string_func_t string_func, opt_func_t eval_func);
/**
* Evaluate an expression
*/
AP_DECLARE(int) ap_expr_evalstring(request_rec *r, const char *expr,
int *was_error, backref_t **reptr,
- string_func_t string_func,
+ string_func_t string_func,
opt_func_t eval_func);
{
parse_node_t *root = ap_expr_parse(r->pool, expr, was_error);
if (*was_error || !root) {
- ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
"Error parsing expression in %s", r->filename);
- return 0;
+ return 0;
}
return ap_expr_eval(r, root, was_error, reptr, string_func, eval_func);
}