| 323 | } |
| 324 | |
| 325 | static int parse_ident(char *buf, int buf_size, const char **pp) |
| 326 | { |
| 327 | char *q; |
| 328 | const char *p; |
| 329 | p = *pp; |
| 330 | q = buf; |
| 331 | *q++ = *p++; /* first char is already tested */ |
| 332 | while (is_ident_first(*p) || isdigit(*p)) { |
| 333 | if ((q - buf) >= buf_size - 1) |
| 334 | return -1; |
| 335 | *q++ = *p++; |
| 336 | } |
| 337 | *pp = p; |
| 338 | *q = '\0'; |
| 339 | return 0; |
| 340 | } |
| 341 | |
| 342 | JSONValue json_parse_value2(const char **pp) |
| 343 | { |
no test coverage detected