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

Function dl_fix_init

tests/test_doclinks.c:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76} dl_fix_t;
77
78static bool dl_fix_init(dl_fix_t *fx) {
79 snprintf(fx->tmpdir, sizeof(fx->tmpdir), "/tmp/cbm_doclinks_XXXXXX");
80 if (!cbm_mkdtemp(fx->tmpdir)) {
81 return false;
82 }
83 fx->project = cbm_project_name_from_path(fx->tmpdir);
84 fx->gb = cbm_gbuf_new(fx->project, fx->tmpdir);
85 return fx->gb != NULL;
86}
87
88static void dl_fix_free(dl_fix_t *fx) {
89 cbm_gbuf_free(fx->gb);

Callers 1

test_doclinks.cFile · 0.85

Calls 3

cbm_mkdtempFunction · 0.85
cbm_gbuf_newFunction · 0.85

Tested by

no test coverage detected