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

Function binding_get

src/cypher/cypher.c:2435–2442  ·  view source on GitHub ↗

Find a variable's node in a binding */

Source from the content-addressed store, hash-verified

2433
2434/* Find a variable's node in a binding */
2435static cbm_node_t *binding_get(binding_t *b, const char *var) {
2436 for (int i = 0; i < b->var_count; i++) {
2437 if (strcmp(b->var_names[i], var) == 0) {
2438 return &b->var_nodes[i];
2439 }
2440 }
2441 return NULL;
2442}
2443
2444/* Deep copy a node: heap-dup all string fields so the binding owns them */
2445static void node_deep_copy(cbm_node_t *dst, const cbm_node_t *src) {

Callers 12

resolve_condition_valueFunction · 0.85
eval_conditionFunction · 0.85
binding_get_virtualFunction · 0.85
process_edgesFunction · 0.85
expand_var_lengthFunction · 0.85
expand_pattern_relsFunction · 0.85
project_itemFunction · 0.85
with_agg_find_or_createFunction · 0.85
project_star_varFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected