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

Function cbm_adr_check_structure

src/store/store.c:11357–11366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11355}
11356
11357int cbm_adr_check_structure(const char *content, char *errbuf, int errbuf_size) {
11358 if (content && adr_has_unterminated_fence(content)) {
11359 snprintf(errbuf, (size_t)errbuf_size,
11360 "the stored ADR leaves a code fence open, so its section boundaries are "
11361 "ambiguous and a section write could splice into a code sample; repair it "
11362 "with mode='update'");
11363 return CBM_STORE_ERR;
11364 }
11365 return CBM_STORE_OK;
11366}
11367
11368typedef struct {
11369 const char *name;

Callers 2

test_store_arch.cFile · 0.85

Calls 1

Tested by

no test coverage detected