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

Function tpt_component

src/mcp/test_impact_tree_names.c:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4#ifdef _WIN32
5static bool tpt_component(tpt_context *c, const unsigned char *p, size_t n) {
6 cbm_path_syntax_result_t result = cbm_path_windows_component(p, n);
7 if (result == CBM_PATH_SYNTAX_DEVICE_OR_TRIMMED)
8 return tpt_fail(c, CBM_PINNED_TREE_UNSUPPORTED, "Windows device or trimmed component");
9 if (result != CBM_PATH_SYNTAX_OK)
10 return tpt_fail(c, CBM_PINNED_TREE_UNSUPPORTED, "Windows unsupported path component");
11 return true;
12}
13
14bool tpt_wide(tpt_context *c, const char *source, wchar_t *target) {
15 if (!source || !target)

Callers 1

tpt_path_validFunction · 0.85

Calls 2

tpt_failFunction · 0.85

Tested by

no test coverage detected