| 26 | void (*xalloc_fail_func)() = nullptr; |
| 27 | |
| 28 | void GnuDiff::xalloc_die() |
| 29 | { |
| 30 | if(xalloc_fail_func) |
| 31 | (*xalloc_fail_func)(); |
| 32 | //error (exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted)); |
| 33 | /* The `noreturn' cannot be given to error, since it may return if |
| 34 | its first argument is 0. To help compilers understand the |
| 35 | xalloc_die does terminate, call exit. */ |
| 36 | exit(EXIT_FAILURE); |
| 37 | } |
| 38 | |
| 39 | /* Allocate N bytes of memory dynamically, with error checking. */ |
| 40 |
nothing calls this directly
no outgoing calls
no test coverage detected