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

Function oa_route

tests/test_openapi.c:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <string.h>
14
15static const CBMDefinition *oa_route(const CBMFileResult *r, const char *qn) {
16 for (int i = 0; i < r->defs.count; i++) {
17 const CBMDefinition *d = &r->defs.items[i];
18 if (d->qualified_name && strcmp(d->qualified_name, qn) == 0) {
19 return d;
20 }
21 }
22 printf(" no definition %s\n", qn);
23 return NULL;
24}
25
26static const char *oa_prop(const CBMDefinition *d, const char *key) {
27 for (int i = 0; d && d->extra_props && d->extra_props[i]; i += 2) {

Callers 1

test_openapi.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected