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

Function rb_set_columns

src/cypher/cypher.c:3047–3053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3045}
3046
3047static void rb_set_columns(result_builder_t *rb, const char **cols, int count) {
3048 rb->columns = malloc((count > 0 ? (size_t)count : SKIP_ONE) * sizeof(const char *));
3049 for (int i = 0; i < count; i++) {
3050 rb->columns[i] = heap_strdup(cols[i]);
3051 }
3052 rb->col_count = count;
3053}
3054
3055static void rb_add_row(result_builder_t *rb, const char **values) {
3056 if (rb->row_count >= rb->row_cap) {

Callers 4

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