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

Function rst_def

tests/test_doc_links_rst.c:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static const CBMDefinition *rst_def(const CBMFileResult *r, const char *label, const char *name) {
93 for (int i = 0; i < r->defs.count; i++) {
94 const CBMDefinition *d = &r->defs.items[i];
95 if (d->label && strcmp(d->label, label) == 0 && d->name && strcmp(d->name, name) == 0) {
96 return d;
97 }
98 }
99 return NULL;
100}
101
102TEST(rst_scan_structure) {
103 CBMFileResult *r = dm_extract(RST_DOC, CBM_LANG_RST, "docs/api.rst");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected