| 730 | } |
| 731 | |
| 732 | void |
| 733 | clearlocks(void) |
| 734 | { |
| 735 | int x; |
| 736 | |
| 737 | #ifdef HANGUPHANDLING |
| 738 | if (program_state.preserve_locks) |
| 739 | return; |
| 740 | #endif |
| 741 | #ifndef NO_SIGNAL |
| 742 | (void) signal(SIGINT, SIG_IGN); |
| 743 | #if defined(UNIX) || defined(VMS) |
| 744 | sethanguphandler((void (*)(int)) SIG_IGN); |
| 745 | #endif |
| 746 | #endif /* NO_SIGNAL */ |
| 747 | /* can't access maxledgerno() before dungeons are created -dlc */ |
| 748 | for (x = (svn.n_dgns ? maxledgerno() : 0); x >= 0; x--) |
| 749 | delete_levelfile(x); /* not all levels need be present */ |
| 750 | } |
| 751 | |
| 752 | #if defined(SELECTSAVED) |
| 753 | /* qsort comparison routine */ |
no test coverage detected