| 9607 | memmove(q->v, q->v + 1, (q->len - 1) * sizeof(q->v[0])); |
| 9608 | q->len--; |
| 9609 | return text; |
| 9610 | } |
| 9611 | |
| 9612 | static void agent_prompt_queue_push_front(agent_prompt_queue *q, char *text) { |
| 9613 | if (q->len == q->cap) { |
| 9614 | q->cap = q->cap ? q->cap * 2 : 4; |
| 9615 | q->v = xrealloc(q->v, q->cap * sizeof(q->v[0])); |
no test coverage detected