mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Use new eval mechanism for testing filters.
This commit is contained in:
parent
e3f2d5fce3
commit
6be662d917
@ -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 New Issue
Block a user