Use new eval mechanism for testing filters.
This commit is contained in:
parent
e3f2d5fce3
commit
6be662d917
2 changed files with 3 additions and 1 deletions
|
@ -673,7 +673,7 @@ f_eval_int(struct f_inst *expr)
|
||||||
f_rte = NULL;
|
f_rte = NULL;
|
||||||
f_rte_old = NULL;
|
f_rte_old = NULL;
|
||||||
f_rta_copy = NULL;
|
f_rta_copy = NULL;
|
||||||
f_pool = NULL;
|
f_pool = cfg_mem;
|
||||||
res = interpret(expr);
|
res = interpret(expr);
|
||||||
if (res.type != T_INT)
|
if (res.type != T_INT)
|
||||||
cf_error("Integer expression expected");
|
cf_error("Integer expression expected");
|
||||||
|
|
|
@ -141,3 +141,5 @@ int j;
|
||||||
|
|
||||||
accept "ok I take that";
|
accept "ok I take that";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eval __startup();
|
Loading…
Reference in a new issue