| 382 | bool format_thinking; |
| 383 | bool in_think; |
| 384 | bool color_open; |
| 385 | bool use_color; |
| 386 | bool last_output_newline; |
| 387 | char pending[16]; |
| 388 | size_t pending_len; |
| 389 | } token_printer; |
| 390 | |
| 391 | static bool bytes_has_prefix(const char *p, size_t n, const char *prefix) { |
| 392 | size_t plen = strlen(prefix); |
| 393 | return n >= plen && memcmp(p, prefix, plen) == 0; |
| 394 | } |
| 395 |
no test coverage detected