mirror of https://github.com/akheron/jansson
Revert "Revert "Revert "Added is_modified feature to json_t struct"""
This reverts commit c34cbc5a67
.
This commit is contained in:
parent
c34cbc5a67
commit
0e115ea1a2
|
@ -50,7 +50,6 @@ typedef enum {
|
||||||
typedef struct json_t {
|
typedef struct json_t {
|
||||||
json_type type;
|
json_type type;
|
||||||
size_t refcount;
|
size_t refcount;
|
||||||
boolean is_modified;
|
|
||||||
} json_t;
|
} json_t;
|
||||||
|
|
||||||
#ifndef JANSSON_USING_CMAKE /* disabled if using cmake */
|
#ifndef JANSSON_USING_CMAKE /* disabled if using cmake */
|
||||||
|
@ -79,7 +78,6 @@ typedef long json_int_t;
|
||||||
#define json_boolean_value json_is_true
|
#define json_boolean_value json_is_true
|
||||||
#define json_is_boolean(json) (json_is_true(json) || json_is_false(json))
|
#define json_is_boolean(json) (json_is_true(json) || json_is_false(json))
|
||||||
#define json_is_null(json) ((json) && json_typeof(json) == JSON_NULL)
|
#define json_is_null(json) ((json) && json_typeof(json) == JSON_NULL)
|
||||||
#define json_is_modified(json) ((json)->is_modified)
|
|
||||||
|
|
||||||
/* construction, destruction, reference counting */
|
/* construction, destruction, reference counting */
|
||||||
|
|
||||||
|
@ -131,8 +129,6 @@ typedef struct {
|
||||||
|
|
||||||
/* getters, setters, manipulation */
|
/* getters, setters, manipulation */
|
||||||
|
|
||||||
int json_set_modified(json_t *json_object, bool input);
|
|
||||||
|
|
||||||
void json_object_seed(size_t seed);
|
void json_object_seed(size_t seed);
|
||||||
size_t json_object_size(const json_t *object);
|
size_t json_object_size(const json_t *object);
|
||||||
json_t *json_object_get(const json_t *object, const char *key);
|
json_t *json_object_get(const json_t *object, const char *key);
|
||||||
|
|
|
@ -44,11 +44,6 @@ static JSON_INLINE void json_init(json_t *json, json_type type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int json_set_modified(json_t *json_object, bool input)
|
|
||||||
{
|
|
||||||
json_object->is_modified = input;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*** object ***/
|
/*** object ***/
|
||||||
|
|
||||||
extern volatile uint32_t hashtable_seed;
|
extern volatile uint32_t hashtable_seed;
|
||||||
|
|
Loading…
Reference in New Issue