| 173 | static void buf_free(buf *b) { |
| 174 | free(b->ptr); |
| 175 | memset(b, 0, sizeof(*b)); |
| 176 | } |
| 177 | |
| 178 | static void json_ws(const char **p) { |
| 179 | while (**p && isspace((unsigned char)**p)) (*p)++; |
| 180 | } |
| 181 | |
| 182 | static bool json_lit(const char **p, const char *lit) { |
| 183 | size_t n = strlen(lit); |
no outgoing calls
no test coverage detected