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

Function rs_decl_node

src/pipeline/doc_links_rs.c:3989–3997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3987}
3988
3989static const cbm_gbuf_node_t *rs_decl_node(const rs_index_t *ix, const cbm_gbuf_t *graph, int fi,
3990 char label, const char *suffix) {
3991 char qn[RS_QN_BUF];
3992 if (!label || !suffix ||
3993 snprintf(qn, sizeof(qn), "%s%s", ix->files[fi].item_prefix, suffix) >= (int)sizeof(qn)) {
3994 return NULL;
3995 }
3996 return rs_node(ix, graph, fi, rs_label_name(label), qn);
3997}
3998
3999/* The outcome for the one entity a reference names. */
4000static void rs_outcome(const rs_link_t *q, const cbm_gbuf_t *graph, rs_ent_t e,

Callers 1

rs_outcomeFunction · 0.85

Calls 2

rs_nodeFunction · 0.85
rs_label_nameFunction · 0.85

Tested by

no test coverage detected