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

Function make_bash_order

ds4_server.c:12130–12137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12128 buf[0] = '\0';
12129#define ADD_FLAG(name) do { \
12130 int n = snprintf(buf + used, used < len ? len - used : 0, "%s%s", used ? " " : "", name); \
12131 if (n > 0) used += (size_t)n; \
12132} while (0)
12133 if (responses_protocol) ADD_FLAG("RESPPROTO");
12134 if (tools) ADD_FLAG("TOOLS");
12135 if (thinking) ADD_FLAG("THINKING");
12136 if (dsml_start) ADD_FLAG("DSML_START");
12137 if (dsml_end) ADD_FLAG("DSML_END");
12138#undef ADD_FLAG
12139}
12140

Calls 1