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

Function node_deep_copy

src/cypher/cypher.c:2525–2533  ·  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

2523
2524/* Deep copy a node: heap-dup all string fields so the binding owns them */
2525static void node_deep_copy(cbm_node_t *dst, const cbm_node_t *src) {
2526 *dst = *src;
2527 dst->project = heap_strdup(src->project);
2528 dst->label = heap_strdup(src->label);
2529 dst->name = heap_strdup(src->name);
2530 dst->qualified_name = heap_strdup(src->qualified_name);
2531 dst->file_path = heap_strdup(src->file_path);
2532 dst->properties_json = heap_strdup(src->properties_json);
2533}
2534
2535static void node_fields_free(cbm_node_t *n) {
2536 if (!n) {

Callers 3

binding_copyFunction · 0.85
binding_setFunction · 0.85
with_agg_find_or_createFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected