diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-10 16:34:12 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-10 16:35:13 +0200 |
commit | 39164c57d893b02f9a253c661abc2459bcd57e5c (patch) | |
tree | 7df7bb35122bc692818feb883726e5910b892101 /eval.c | |
parent | d33d86fae9b72b352a335488e2e1401e3b0c66a1 (diff) |
treewide: eliminate unused function arguments
Also introduce convenience macro for registering function arrays in modules.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -193,7 +193,7 @@ ut_addscope(struct ut_state *state, uint32_t decl) state->stack.size++; } - scope = ut_new_object(state, NULL); + scope = ut_new_object(NULL); if (!scope) return ut_exception(state, decl, UT_ERRMSG_OOM); @@ -832,7 +832,7 @@ ut_execute_list(struct ut_state *state, uint32_t off) static struct json_object * ut_execute_object(struct ut_state *state, uint32_t off) { - struct json_object *obj = ut_new_object(state, NULL); + struct json_object *obj = ut_new_object(NULL); struct ut_op *key, *val; if (!obj) @@ -1211,7 +1211,7 @@ static struct json_object * ut_execute_function(struct ut_state *state, uint32_t off) { struct ut_op *op = ut_get_op(state, off); - struct json_object *obj = ut_new_func(state, op); + struct json_object *obj = ut_new_func(op); if (!obj) return ut_exception(state, off, UT_ERRMSG_OOM); |