projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change the underlying type of JSON integer from long to json_int_t
[jansson.git]
/
src
/
jansson_private.h
diff --git
a/src/jansson_private.h
b/src/jansson_private.h
index
4490702
..
bd80346
100644
(file)
--- a/
src/jansson_private.h
+++ b/
src/jansson_private.h
@@
-17,14
+17,14
@@
typedef struct {
json_t json;
hashtable_t hashtable;
typedef struct {
json_t json;
hashtable_t hashtable;
-
unsigned long
serial;
+
size_t
serial;
int visited;
} json_object_t;
typedef struct {
json_t json;
int visited;
} json_object_t;
typedef struct {
json_t json;
-
unsigned in
t size;
-
unsigned in
t entries;
+
size_
t size;
+
size_
t entries;
json_t **table;
int visited;
} json_array_t;
json_t **table;
int visited;
} json_array_t;
@@
-41,7
+41,7
@@
typedef struct {
typedef struct {
json_t json;
typedef struct {
json_t json;
-
in
t value;
+
json_int_
t value;
} json_integer_t;
#define json_to_object(json_) container_of(json_, json_object_t, json)
} json_integer_t;
#define json_to_object(json_) container_of(json_, json_object_t, json)
@@
-51,7
+51,7
@@
typedef struct {
#define json_to_integer(json_) container_of(json_, json_integer_t, json)
typedef struct {
#define json_to_integer(json_) container_of(json_, json_integer_t, json)
typedef struct {
-
unsigned long
serial;
+
size_t
serial;
char key[];
} object_key_t;
char key[];
} object_key_t;