| 688 | } |
| 689 | |
| 690 | static bool jl_match_output(const unsigned char *bytes, size_t byte_count, const char *target, |
| 691 | size_t target_length, size_t *target_pos) { |
| 692 | if (target_length - *target_pos < byte_count || |
| 693 | memcmp(target + *target_pos, bytes, byte_count) != 0) { |
| 694 | return false; |
| 695 | } |
| 696 | *target_pos += byte_count; |
| 697 | return true; |
| 698 | } |
| 699 | |
| 700 | static bool jl_key_equals(const char *text, size_t start, size_t end, const char *target) { |
| 701 | size_t target_length = strlen(target); |