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 /ast.h | |
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 'ast.h')
-rw-r--r-- | ast.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); |