Kick json_type_int and json_type_double out of struct json_object.

Clean up the code in json_object_new_* a bit by dropping unnecesary json_object_base variables.
This commit is contained in:
Eric Haszlakiewicz
2020-05-26 02:31:35 +00:00
parent 0351bb55c8
commit 9ecb1222bd
3 changed files with 172 additions and 147 deletions

View File

@@ -68,7 +68,7 @@ struct json_object_boolean
struct json_object_double
{
struct json_object_base base;
json_bool c_double;
double c_double;
};
struct json_object_int
{
@@ -97,16 +97,6 @@ struct json_object
struct printbuf *_pb;
union data
{
double c_double;
struct
{
union
{
int64_t c_int64;
uint64_t c_uint64;
} cint;
enum json_object_int_type cint_type;
} c_int;
struct
{
union