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

Function dm_extract

tests/test_doc_mentions_helpers.h:38–40  ·  view source on GitHub ↗

Extract one source text as language `lang` under project "p"; the result * (tokens in doc_links, scope blob in doc_scope) is freed with * cbm_free_result. */

Source from the content-addressed store, hash-verified

36 * (tokens in doc_links, scope blob in doc_scope) is freed with
37 * cbm_free_result. */
38static inline CBMFileResult *dm_extract(const char *src, CBMLanguage lang, const char *rel_path) {
39 return cbm_extract_file(src, (int)strlen(src), lang, "p", rel_path, 0, NULL, NULL);
40}
41
42/* The first token written as `raw`; NULL when there is none. */
43static inline const CBMDocLink *dm_find_token(const CBMFileResult *r, const char *raw) {

Callers 15

dm_scope_deltaFunction · 0.85
test_diagrams.cFile · 0.85
dg_fileFunction · 0.85
jt_extract_repeatedFunction · 0.85
go_extractFunction · 0.85

Calls 1

cbm_extract_fileFunction · 0.85

Tested by

no test coverage detected