mirror of
https://github.com/json-c/json-c.git
synced 2026-04-02 11:59:07 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user