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

Function flush_token

src/semantic/semantic.c:159–165  ·  view source on GitHub ↗

Flush the current buffer as a token into out[]. */

Source from the content-addressed store, hash-verified

157
158/* Flush the current buffer as a token into out[]. */
159static void flush_token(char *buf, int *blen, char **out, int *count, int max_out) {
160 if (*blen > 0 && *count < max_out) {
161 buf[*blen] = '\0';
162 out[(*count)++] = cbm_mem_strdup(CBM_MEM_CLASS_SEMANTIC, buf);
163 }
164 *blen = 0;
165}
166
167int cbm_sem_tokenize(const char *name, char **out, int max_out) {
168 if (!name || !out || max_out <= 0) {

Callers 1

cbm_sem_tokenizeFunction · 0.85

Calls 1

cbm_mem_strdupFunction · 0.85

Tested by

no test coverage detected