37 * https://tools.ietf.org/html/rfc8259 |
37 * https://tools.ietf.org/html/rfc8259 |
38 */ |
38 */ |
39 |
39 |
40 #define PARSER_STATES_ALLOC 32 |
40 #define PARSER_STATES_ALLOC 32 |
41 |
41 |
42 static CxJsonValue cx_json_value_nothing = {CX_JSON_NOTHING, {0}}; |
42 static CxJsonValue cx_json_value_nothing = {CX_JSON_NOTHING}; |
43 |
43 |
44 |
44 |
45 static int token_append(CxJsonToken *token, const char *buf, size_t len) { |
45 static int token_append(CxJsonToken *token, const char *buf, size_t len) { |
46 if (len == 0) { |
46 if (len == 0) { |
47 return 0; |
47 return 0; |