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

Function dg_def

tests/test_diagrams.c:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 "```\n"; /* 33 */
54
55static const CBMDefinition *dg_def(const CBMFileResult *r, const char *qn_suffix) {
56 size_t sl = strlen(qn_suffix);
57 for (int i = 0; i < r->defs.count; i++) {
58 const char *qn = r->defs.items[i].qualified_name;
59 size_t ql = qn ? strlen(qn) : 0;
60 if (ql >= sl && strcmp(qn + ql - sl, qn_suffix) == 0) {
61 return &r->defs.items[i];
62 }
63 }
64 printf(" no definition *%s\n", qn_suffix);
65 return NULL;
66}
67
68static const char *dg_prop(const CBMDefinition *d, const char *key) {
69 for (const char **kv = d->extra_props; kv && kv[0]; kv += 2) {

Callers 1

test_diagrams.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected