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

Function tpt_scratch

src/mcp/test_impact_tree_plan.c:179–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179static bool tpt_scratch(tpt_context *c) {
180 cbm_pinned_tree_t *t = c->tree;
181 t->root_path = tpt_alloc(c, TPT_PATH_CAP, 1);
182 t->path_scratch = tpt_alloc(c, TPT_PATH_CAP, 1);
183 t->name_scratch = tpt_alloc(c, TPT_PATH_CAP, 1);
184 t->parent_path = tpt_alloc(c, TPT_PATH_CAP, 1);
185 t->io_scratch = tpt_alloc(c, TPT_CHUNK, 1);
186 t->security_scratch = tpt_alloc(c, TPT_SECURITY_CAP, 1);
187#ifdef _WIN32
188 t->enumeration_scratch = tpt_alloc(c, TPT_CHUNK, 1);
189 t->wide_path = tpt_alloc(c, TPT_PATH_CAP + 8, sizeof(wchar_t));
190 t->wide_parent = tpt_alloc(c, TPT_PATH_CAP + 8, sizeof(wchar_t));
191 t->wide_root = tpt_alloc(c, TPT_PATH_CAP + 8, sizeof(wchar_t));
192#endif
193 return tpt_poll(c);
194}
195
196bool tpt_plan(tpt_context *c, const cbm_pinned_tree_options_t *o,
197 const cbm_git_tree_inventory_t *inventory) {

Callers 1

tpt_planFunction · 0.85

Calls 2

tpt_allocFunction · 0.85
tpt_pollFunction · 0.85

Tested by

no test coverage detected