summaryrefslogtreecommitdiffhomepage
path: root/ast.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-02 22:25:45 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-02 22:29:08 +0200
commited4b689d9172078199d8942791017b74a6a01651 (patch)
treecc34334d1c988ffdbf9559071e069633da0d1468 /ast.c
parent26f152e73eb02c6afdb98e6f7228d0a30ee973f3 (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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index bba1316..e20682c 100644
--- a/ast.c
+++ b/ast.c
@@ -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);