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

Function cbm_tree_table_header

src/mcp/compact_out.c:247–258  ·  view source on GitHub ↗

Tree-syntax table header: `key: N (cols: a b c)` — count first (agents * read scale before rows), column names once, rows indented beneath. */

Source from the content-addressed store, hash-verified

245/* Tree-syntax table header: `key: N (cols: a b c)` — count first (agents
246 * read scale before rows), column names once, rows indented beneath. */
247void cbm_tree_table_header(cbm_sb_t *sb, const char *key, int n, const char *const *cols,
248 int ncols) {
249 char num[32];
250 snprintf(num, sizeof(num), ": %d (cols:", n);
251 cbm_sb_append(sb, key);
252 cbm_sb_append(sb, num);
253 for (int i = 0; i < ncols; i++) {
254 cbm_sb_append_n(sb, " ", 1);
255 cbm_sb_append(sb, cols[i]);
256 }
257 cbm_sb_append_n(sb, ")\n", 2);
258}
259
260void cbm_tree_row_begin(cbm_sb_t *sb) {
261 cbm_sb_append_n(sb, " ", 2);

Callers 8

bm25_searchFunction · 0.85
emit_search_results_toonFunction · 0.85
handle_search_graphFunction · 0.85
handle_query_graphFunction · 0.85
handle_get_architectureFunction · 0.85
bfs_to_toon_tableFunction · 0.85

Calls 2

cbm_sb_appendFunction · 0.85
cbm_sb_append_nFunction · 0.85

Tested by

no test coverage detected