| 413 | } |
| 414 | |
| 415 | static void ParseKey(Context* context, char* buf, int buf_len) |
| 416 | { |
| 417 | int c = GetChar(context); |
| 418 | int i = 0; |
| 419 | while (isalnum(c) || c == '_') |
| 420 | { |
| 421 | buf[i] = c; |
| 422 | if (i >= (int) buf_len - 1) |
| 423 | ParseError(context, RESULT_LITERAL_TOO_LONG); |
| 424 | |
| 425 | c = GetChar(context); |
| 426 | ++i; |
| 427 | } |
| 428 | BufferUngetChar(c, context); |
| 429 | buf[i] = '\0'; |
| 430 | } |
| 431 | |
| 432 | static void ParseEntry(Context* context, char* value_buf, int value_len) |
| 433 | { |
no test coverage detected