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

Function node_id_cmp

src/pipeline/doc_links_pdf.c:377–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377static int node_id_cmp(const void *a, const void *b) {
378 const cbm_gbuf_node_t *x = *(const cbm_gbuf_node_t *const *)a;
379 const cbm_gbuf_node_t *y = *(const cbm_gbuf_node_t *const *)b;
380 return x->id < y->id ? -1 : x->id > y->id ? 1 : 0;
381}
382
383/* Two nodes of one definition: the same file, start line and name. */
384static bool same_definition(const cbm_gbuf_node_t *a, const cbm_gbuf_node_t *b) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected