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

Function rb_set_columns

src/cypher/cypher.c:2575–2581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2573}
2574
2575static void rb_set_columns(result_builder_t *rb, const char **cols, int count) {
2576 rb->columns = malloc((count > 0 ? (size_t)count : SKIP_ONE) * sizeof(const char *));
2577 for (int i = 0; i < count; i++) {
2578 rb->columns[i] = heap_strdup(cols[i]);
2579 }
2580 rb->col_count = count;
2581}
2582
2583static void rb_add_row(result_builder_t *rb, const char **values) {
2584 if (rb->row_count >= rb->row_cap) {

Callers 3

build_star_columnsFunction · 0.85
build_return_columnsFunction · 0.85
build_default_columnsFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected