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

Function pc_call

tests/test_pipeline_conventions.c:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 pc_text(out->file_path, file) && pc_role(out, role);
164}
165static bool pc_call(cbm_store_t *s, int64_t source, int64_t target) {
166 cbm_edge_t *edges = NULL; int count = 0;
167 bool read = cbm_store_find_edges_by_source_type(s, source, "CALLS", &edges, &count) == CBM_STORE_OK;
168 bool found = false;
169 if (read) for (int i = 0; i < count; i++)
170 if (edges[i].source_id == source && edges[i].target_id == target && pc_text(edges[i].type, "CALLS")) found = true;
171 cbm_store_free_edges(edges, count);
172 return read && found;
173}
174static bool pc_c_graph(const char *db, bool after) {
175 cbm_store_t *s = cbm_store_open_path_query(db);
176 if (!s) return false;

Callers 3

pc_c_graphFunction · 0.85
pc_ordinary_graphFunction · 0.85
pc_cpp_graphFunction · 0.85

Calls 3

pc_textFunction · 0.85
cbm_store_free_edgesFunction · 0.85

Tested by

no test coverage detected