mirror of
https://github.com/json-c/json-c.git
synced 2026-04-06 05:49:07 +08:00
modify the json_object, replace c_int64/c_uint64 with struct{union{int64, uint64},...}
This commit is contained in:
@@ -91,12 +91,11 @@ static void getit(struct json_object *new_obj, const char *field)
|
||||
|
||||
static void checktype_header()
|
||||
{
|
||||
printf("json_object_is_type: %s,%s,%s,%s,%s,%s,%s,%s\n",
|
||||
printf("json_object_is_type: %s,%s,%s,%s,%s,%s,%s\n",
|
||||
json_type_to_name(json_type_null),
|
||||
json_type_to_name(json_type_boolean),
|
||||
json_type_to_name(json_type_double),
|
||||
json_type_to_name(json_type_int),
|
||||
json_type_to_name(json_type_uint),
|
||||
json_type_to_name(json_type_object),
|
||||
json_type_to_name(json_type_array),
|
||||
json_type_to_name(json_type_string));
|
||||
@@ -107,13 +106,12 @@ static void checktype(struct json_object *new_obj, const char *field)
|
||||
if (field && !json_object_object_get_ex(new_obj, field, &o))
|
||||
printf("Field %s does not exist\n", field);
|
||||
|
||||
printf("new_obj%s%-18s: %d,%d,%d,%d,%d,%d,%d,%d\n",
|
||||
printf("new_obj%s%-18s: %d,%d,%d,%d,%d,%d,%d\n",
|
||||
field ? "." : " ", field ? field : "",
|
||||
json_object_is_type(o, json_type_null),
|
||||
json_object_is_type(o, json_type_boolean),
|
||||
json_object_is_type(o, json_type_double),
|
||||
json_object_is_type(o, json_type_int),
|
||||
json_object_is_type(o, json_type_uint),
|
||||
json_object_is_type(o, json_type_object),
|
||||
json_object_is_type(o, json_type_array),
|
||||
json_object_is_type(o, json_type_string));
|
||||
|
||||
Reference in New Issue
Block a user