X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fvalue.c;h=89d7b71d83c3a2103d31023f56afabb5742e7a58;hb=781bda140418821ad79ef513b0fd8cfbc0ce552e;hp=3895882c7bf77ac21d277bc5a6c8455f257e0e4b;hpb=56643d4311ecb26001527520da6264d92eab3d76;p=jansson.git diff --git a/src/value.c b/src/value.c index 3895882..89d7b71 100644 --- a/src/value.c +++ b/src/value.c @@ -7,8 +7,6 @@ #define _GNU_SOURCE -#include - #include #include #include @@ -17,10 +15,9 @@ #include "hashtable.h" #include "jansson_private.h" #include "utf.h" -#include "util.h" -static inline void json_init(json_t *json, json_type type) +static JSON_INLINE void json_init(json_t *json, json_type type) { json->type = type; json->refcount = 1; @@ -837,30 +834,21 @@ double json_number_value(const json_t *json) json_t *json_true(void) { - static json_t the_true = { - .type = JSON_TRUE, - .refcount = (size_t)-1 - }; + static json_t the_true = {JSON_TRUE, (size_t)-1}; return &the_true; } json_t *json_false(void) { - static json_t the_false = { - .type = JSON_FALSE, - .refcount = (size_t)-1 - }; + static json_t the_false = {JSON_FALSE, (size_t)-1}; return &the_false; } json_t *json_null(void) { - static json_t the_null = { - .type = JSON_NULL, - .refcount = (size_t)-1 - }; + static json_t the_null = {JSON_NULL, (size_t)-1}; return &the_null; }