| 9845 | |
| 9846 | #ifdef _WIN32 |
| 9847 | static char *search_code_scan_error(search_scratch_t *scratch, const char *output_path, |
| 9848 | bool has_path_filter, cbm_regex_t *path_regex, char *root_path, |
| 9849 | char *pattern, char *project, char *file_pattern, |
| 9850 | const char *message) { |
| 9851 | if (output_path && output_path[0]) { |
| 9852 | (void)cbm_unlink(output_path); |
| 9853 | } |
| 9854 | search_scratch_close(scratch); |
| 9855 | if (has_path_filter) { |
| 9856 | cbm_regfree(path_regex); |
| 9857 | } |
| 9858 | free(root_path); |
| 9859 | free(pattern); |
| 9860 | free(project); |
| 9861 | free(file_pattern); |
| 9862 | return cbm_mcp_text_result(message, true); |
| 9863 | } |
| 9864 | #endif |
| 9865 | |
| 9866 | static char *handle_search_code(cbm_mcp_server_t *srv, const char *args) { |
no test coverage detected