mirror of https://github.com/akheron/jansson
made flag field plural because it is a bitfield
made flag field plural because it is a bitfield
This commit is contained in:
parent
2b092a017e
commit
1ba9d329d2
|
@ -50,7 +50,7 @@ typedef enum {
|
|||
typedef struct json_t {
|
||||
json_type type;
|
||||
size_t refcount;
|
||||
unsigned char flag;
|
||||
unsigned char flags;
|
||||
} json_t;
|
||||
|
||||
#ifndef JANSSON_USING_CMAKE /* disabled if using cmake */
|
||||
|
@ -79,7 +79,7 @@ typedef long json_int_t;
|
|||
#define json_boolean_value json_is_true
|
||||
#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_get_flag(json) ((json)->flag)
|
||||
#define json_get_flags(json) ((json)->flags)
|
||||
|
||||
/* construction, destruction, reference counting */
|
||||
|
||||
|
|
|
@ -44,9 +44,9 @@ static JSON_INLINE void json_init(json_t *json, json_type type)
|
|||
}
|
||||
|
||||
|
||||
int json_set_flag(json_t *json, unsigned char input)
|
||||
int json_set_flags(json_t *json, unsigned char input)
|
||||
{
|
||||
json->flag = input;
|
||||
json->flags = input;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue