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

Function node_deep_copy

src/cypher/cypher.c:2244–2252  ·  view source on GitHub ↗

Deep copy a node: heap-dup all string fields so the binding owns them */

Source from the content-addressed store, hash-verified

2242
2243/* Deep copy a node: heap-dup all string fields so the binding owns them */
2244static void node_deep_copy(cbm_node_t *dst, const cbm_node_t *src) {
2245 *dst = *src;
2246 dst->project = heap_strdup(src->project);
2247 dst->label = heap_strdup(src->label);
2248 dst->name = heap_strdup(src->name);
2249 dst->qualified_name = heap_strdup(src->qualified_name);
2250 dst->file_path = heap_strdup(src->file_path);
2251 dst->properties_json = heap_strdup(src->properties_json);
2252}
2253
2254static void node_fields_free(cbm_node_t *n) {
2255 if (!n) {

Callers 2

binding_copyFunction · 0.85
binding_setFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected