the Be GUI will define its own error proc */ fatal error */
| 470 | #ifndef __begui__ /* the Be GUI will define its own error proc */ |
| 471 | /* fatal error */ |
| 472 | void |
| 473 | error(const char *s, ...) |
| 474 | { |
| 475 | va_list the_args; |
| 476 | |
| 477 | va_start(the_args, s); |
| 478 | if (iflags.window_inited) |
| 479 | exit_nhwindows((char *) 0); /* for tty, will call settty() */ |
| 480 | if (settty_needed) |
| 481 | settty((char *) 0); |
| 482 | Vprintf(s, the_args); |
| 483 | (void) putchar('\n'); |
| 484 | va_end(the_args); |
| 485 | exit(EXIT_FAILURE); |
| 486 | } |
| 487 | #endif /* !__begui__ */ |
| 488 | |
| 489 | RESTORE_WARNING_FORMAT_NONLITERAL |
no test coverage detected