summaryrefslogtreecommitdiffhomepage
path: root/ast.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-10 16:34:12 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-10 16:35:13 +0200
commit39164c57d893b02f9a253c661abc2459bcd57e5c (patch)
tree7df7bb35122bc692818feb883726e5910b892101 /ast.h
parentd33d86fae9b72b352a335488e2e1401e3b0c66a1 (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 'ast.h')
-rw-r--r--ast.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ast.h b/ast.h
index 9bb6696..9840ad4 100644
--- a/ast.h
+++ b/ast.h
@@ -113,13 +113,13 @@ uint32_t ut_append_op(struct ut_state *s, uint32_t a, uint32_t b);
enum ut_error_type ut_parse(struct ut_state *s, const char *expr);
void ut_free(struct ut_state *s);
-struct json_object *ut_new_func(struct ut_state *s, struct ut_op *decl);
-struct json_object *ut_new_object(struct ut_state *s, struct json_object *proto);
+struct json_object *ut_new_func(struct ut_op *decl);
+struct json_object *ut_new_object(struct json_object *proto);
struct json_object *ut_new_double(double v);
struct json_object *ut_new_null(void);
bool ut_register_extended_type(const char *name, void (*freefn)(void *));
-struct json_object *ut_set_extended_type(struct ut_state *s, struct json_object *v, struct json_object *proto, const char *name, void *data);
+struct json_object *ut_set_extended_type(struct json_object *v, struct json_object *proto, const char *name, void *data);
void **ut_get_extended_type(struct json_object *val, const char *name);
void *ParseAlloc(void *(*mfunc)(size_t));