| 130 | **************************************/ |
| 131 | static const char* g_artefact = NULL; |
| 132 | static void INThandler(int sig) |
| 133 | { |
| 134 | assert(sig==SIGINT); (void)sig; |
| 135 | #if !defined(_MSC_VER) |
| 136 | signal(sig, SIG_IGN); /* this invocation generates a buggy warning in Visual Studio */ |
| 137 | #endif |
| 138 | if (g_artefact) { |
| 139 | assert(UTIL_isRegularFile(g_artefact)); |
| 140 | remove(g_artefact); |
| 141 | } |
| 142 | DISPLAY("\n"); |
| 143 | exit(2); |
| 144 | } |
| 145 | static void addHandler(char const* dstFileName) |
| 146 | { |
| 147 | if (UTIL_isRegularFile(dstFileName)) { |
nothing calls this directly
no test coverage detected