| 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) { |