MCPcopy Create free account
hub / github.com/antirez/ds4 / agent_noninteractive_marker

Function agent_noninteractive_marker

ds4_agent.c:9609–9612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9607 memmove(q->v, q->v + 1, (q->len - 1) * sizeof(q->v[0]));
9608 q->len--;
9609 return text;
9610}
9611
9612static 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]));

Callers 1

Calls 1

write_allFunction · 0.85

Tested by

no test coverage detected