src/json.c

changeset 944
c26299cc9897
parent 943
9f1eb30dbc84
child 946
b428424c0214
equal deleted inserted replaced
943:9f1eb30dbc84 944:c26299cc9897
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}; 42 static CxJsonValue cx_json_value_nothing = {.type = 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