src/json.c

changeset 1564
500e3c744d87
parent 1563
6e2f83ef6f5a
child 1565
fb314eeca7a4
equal deleted inserted replaced
1563:6e2f83ef6f5a 1564:500e3c744d87
43 static CxJsonValue cx_json_value_nothing = {.type = CX_JSON_NOTHING}; 43 static CxJsonValue cx_json_value_nothing = {.type = CX_JSON_NOTHING};
44 44
45 static void token_destroy(CxJsonToken *token) { 45 static void token_destroy(CxJsonToken *token) {
46 if (token->allocated) { 46 if (token->allocated) {
47 cx_strfree(&token->content); 47 cx_strfree(&token->content);
48 token->allocated = false;
48 } 49 }
49 } 50 }
50 51
51 static int num_isexp(const char *content, size_t length, size_t pos) { 52 static int num_isexp(const char *content, size_t length, size_t pos) {
52 if (pos >= length) { 53 if (pos >= length) {

mercurial