src/json.c

changeset 938
9d02bb5dcc3c
parent 937
10123f4d5618
child 940
bbf41b9c2658
equal deleted inserted replaced
937:10123f4d5618 938:9d02bb5dcc3c
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;

mercurial