diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-02 22:25:45 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-02 22:29:08 +0200 |
commit | ed4b689d9172078199d8942791017b74a6a01651 (patch) | |
tree | cc34334d1c988ffdbf9559071e069633da0d1468 /ast.c | |
parent | 26f152e73eb02c6afdb98e6f7228d0a30ee973f3 (diff) |
treewide: rename double and null value constructor functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -108,7 +108,7 @@ double_rounded_to_string(struct json_object *v, struct printbuf *pb, int level, } struct json_object * -json_object_new_double_rounded(double v) +ut_new_double(double v) { struct json_object *d = json_object_new_double(v); @@ -124,7 +124,8 @@ null_obj_to_string(struct json_object *v, struct printbuf *pb, int level, int fl } struct json_object * -json_object_new_null_obj(void) { +ut_new_null(void) +{ struct json_object *d = json_object_new_boolean(false); json_object_set_serializer(d, null_obj_to_string, NULL, NULL); |