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

Function adoc_def

tests/test_doc_links_adoc.c:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 "include::{testDir}/example/WithImports.java[tag=all]\n"; /* 23 */
49
50static const CBMDefinition *adoc_def(const CBMFileResult *r, const char *name) {
51 for (int i = 0; i < r->defs.count; i++) {
52 const CBMDefinition *d = &r->defs.items[i];
53 if (d->label && strcmp(d->label, "Section") == 0 && d->name && strcmp(d->name, name) == 0) {
54 return d;
55 }
56 }
57 return NULL;
58}
59
60static bool adoc_raw_has(const CBMFileResult *r, const char *needle) {
61 for (int i = 0; i < r->doc_links.count; i++) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected