MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / emit_token

Function emit_token

src/pipeline/pass_compile_commands.c:21–28  ·  view source on GitHub ↗

Emit the current token if non-empty. Returns updated count. */

Source from the content-addressed store, hash-verified

19
20/* Emit the current token if non-empty. Returns updated count. */
21static int emit_token(char *current, int *clen, char **out, int count, int max_out) {
22 if (*clen > 0 && count < max_out) {
23 current[*clen] = '\0';
24 out[count++] = strdup(current);
25 *clen = 0;
26 }
27 return count;
28}
29
30int cbm_split_command(const char *cmd, char **out, int max_out) {
31 if (!cmd || !out || max_out <= 0) {

Callers 1

cbm_split_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected