| 180 | while (**p && isspace((unsigned char)**p)) (*p)++; |
| 181 | } |
| 182 | |
| 183 | static bool json_lit(const char **p, const char *lit) { |
| 184 | size_t n = strlen(lit); |
| 185 | if (strncmp(*p, lit, n) != 0) return false; |
| 186 | *p += n; |
| 187 | return true; |
| 188 | } |
| 189 | |
| 190 | static int json_hex(char c) { |