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

Function extract_dump

tests/test_parse_coverage.c:1770–1782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1768}
1769
1770static char *extract_dump(const char *src, CBMLanguage lang, const char *path,
1771 uint32_t *module_end) {
1772 CBMFileResult *r = do_extract(src, lang, path);
1773 if (!r) {
1774 return NULL;
1775 }
1776 char *d = dump_extraction(r);
1777 if (module_end) {
1778 *module_end = module_end_line(r);
1779 }
1780 cbm_free_result(r);
1781 return d;
1782}
1783
1784/* GUARD: for code grammars a trailing newline is insignificant, so a file
1785 * without one must extract byte-identically to the same file with one -- every

Callers 1

Calls 4

dump_extractionFunction · 0.85
module_end_lineFunction · 0.85
cbm_free_resultFunction · 0.85
do_extractFunction · 0.70

Tested by

no test coverage detected