diff options
author | Jan Maria Matejka <mq@ucw.cz> | 2018-12-17 13:51:11 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-02-20 22:30:54 +0100 |
commit | 7afa1438866fa94454ba133608b6877171f71d37 (patch) | |
tree | bcf0fb0cfed9ff191fe3e07c28f3a8d87a78760c /nest | |
parent | f62a369fb48be066560d6e8f0df82eef9c464ef0 (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')
-rw-r--r-- | nest/cmds.c | 5 |
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; |