summaryrefslogtreecommitdiff
path: root/nest/cmds.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-02-11 17:12:48 +0100
committerMaria Matejka <mq@ucw.cz>2019-02-20 22:30:54 +0100
commit5289304519918f62d099463123bf6c69a0dd497e (patch)
tree8333f8440e9040868ecc3b43f769802db4e87fac /nest/cmds.c
parent87bd7cd7b03f24c9d7c37a2a060ef553f26ead29 (diff)
Filter data manipulation functions separated to their file
Diffstat (limited to 'nest/cmds.c')
-rw-r--r--nest/cmds.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/nest/cmds.c b/nest/cmds.c
index 2b83033f..da4015cf 100644
--- a/nest/cmds.c
+++ b/nest/cmds.c
@@ -15,7 +15,6 @@
#include "lib/string.h"
#include "lib/resource.h"
#include "filter/filter.h"
-#include "filter/data.h"
extern int shutting_down;
extern int configuring;
@@ -98,16 +97,14 @@ cmd_show_memory(void)
void
cmd_eval(const struct f_line *expr)
{
- /* TODO: Return directly the string from eval */
- struct f_val v;
- if (f_eval(expr, this_cli->parser_pool, &v) > F_RETURN)
+ buffer buf;
+ LOG_BUFFER_INIT(buf);
+
+ if (f_eval_buf(expr, this_cli->parser_pool, &buf) > F_RETURN)
{
cli_msg(8008, "runtime error");
return;
}
- buffer buf;
- LOG_BUFFER_INIT(buf);
- val_format(&v, &buf);
cli_msg(23, "%s", buf.start);
}