modify the json_object, replace c_int64/c_uint64 with struct{union{int64, uint64},...}

This commit is contained in:
dota17
2020-02-26 20:54:36 +08:00
parent 3c3b5920f7
commit c816de212b
7 changed files with 111 additions and 87 deletions

View File

@@ -176,12 +176,17 @@ typedef enum json_type {
json_type_boolean,
json_type_double,
json_type_int,
json_type_uint,
json_type_object,
json_type_array,
json_type_string
} json_type;
/* json object int type, support extension*/
typedef enum json_object_int_type {
json_object_int_type_int64,
json_object_int_type_uint64
}json_object_int_type;
/* reference counting functions */
/**
@@ -211,7 +216,6 @@ JSON_EXPORT int json_object_put(struct json_object *obj);
json_type_boolean,
json_type_double,
json_type_int,
json_type_uint,
json_type_object,
json_type_array,
json_type_string
@@ -228,7 +232,6 @@ JSON_EXPORT int json_object_is_type(const struct json_object *obj, enum json_typ
json_type_boolean,
json_type_double,
json_type_int,
json_type_uint,
json_type_object,
json_type_array,
json_type_string