static const char *ap_expr_eval_string_func(ap_expr_eval_ctx_t *ctx,
const ap_expr_t *info,
const ap_expr_t *args);
-static const char *ap_expr_eval_re_backref(ap_expr_eval_ctx_t *ctx, int n);
+static const char *ap_expr_eval_re_backref(ap_expr_eval_ctx_t *ctx,
+ unsigned int n);
static const char *ap_expr_eval_var(ap_expr_eval_ctx_t *ctx,
- const ap_expr_var_func_t *func,
+ ap_expr_var_func_t *func,
const void *data);
/* define AP_EXPR_DEBUG to log the parse tree when parsing an expression */
break;
}
case op_RegexBackref: {
- const int *np = node->node_arg1;
+ const unsigned int *np = node->node_arg1;
result = ap_expr_eval_re_backref(ctx, *np);
break;
}
}
static const char *ap_expr_eval_var(ap_expr_eval_ctx_t *ctx,
- const ap_expr_var_func_t *func,
+ ap_expr_var_func_t *func,
const void *data)
{
AP_DEBUG_ASSERT(func != NULL);
return (*func)(ctx, data);
}
-static const char *ap_expr_eval_re_backref(ap_expr_eval_ctx_t *ctx, int n)
+static const char *ap_expr_eval_re_backref(ap_expr_eval_ctx_t *ctx, unsigned int n)
{
int len;
static int ap_expr_eval_unary_op(ap_expr_eval_ctx_t *ctx, const ap_expr_t *info,
const ap_expr_t *arg)
{
- const ap_expr_op_unary_t *op_func = info->node_arg1;
+ ap_expr_op_unary_t *op_func = info->node_arg1;
const void *data = info->node_arg2;
AP_DEBUG_ASSERT(info->node_op == op_UnaryOpInfo);
const ap_expr_t *info,
const ap_expr_t *args)
{
- const ap_expr_op_binary_t *op_func = info->node_arg1;
+ ap_expr_op_binary_t *op_func = info->node_arg1;
const void *data = info->node_arg2;
const ap_expr_t *a1 = args->node_arg1;
const ap_expr_t *a2 = args->node_arg2;