summaryrefslogtreecommitdiff
path: root/nest/cmds.c
diff options
context:
space:
mode:
authorJan Maria Matejka <mq@ucw.cz>2018-12-17 13:51:11 +0100
committerMaria Matejka <mq@ucw.cz>2019-02-20 22:30:54 +0100
commit7afa1438866fa94454ba133608b6877171f71d37 (patch)
treebcf0fb0cfed9ff191fe3e07c28f3a8d87a78760c /nest/cmds.c
parentf62a369fb48be066560d6e8f0df82eef9c464ef0 (diff)
Filter refactoring: Passing the resulting struct f_val as a pointer.
This also drops the multiplexing of errors with the f_val itself together with the T_RETURN f_val type flag.
Diffstat (limited to 'nest/cmds.c')
-rw-r--r--nest/cmds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nest/cmds.c b/nest/cmds.c
index ca601ef2..0c89d20f 100644
--- a/nest/cmds.c
+++ b/nest/cmds.c
@@ -97,9 +97,8 @@ cmd_show_memory(void)
void
cmd_eval(struct f_inst *expr)
{
- struct f_val v = f_eval(expr, this_cli->parser_pool);
-
- if (v.type == T_RETURN)
+ struct f_val v;
+ if (f_eval(expr, this_cli->parser_pool, &v) > F_RETURN)
{
cli_msg(8008, "runtime error");
return;