| 3 | |
| 4 | #ifdef _WIN32 |
| 5 | static 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 | |
| 14 | bool tpt_wide(tpt_context *c, const char *source, wchar_t *target) { |
| 15 | if (!source || !target) |
no test coverage detected