MCPcopy Create free account
hub / github.com/NetHack/NetHack / clearlocks

Function clearlocks

src/files.c:732–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void
733clearlocks(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 */

Callers 15

bailFunction · 0.85
qt_asknameMethod · 0.85
bailFunction · 0.85
curses_choose_characterFunction · 0.85
curses_bailFunction · 0.85
X11_bailFunction · 0.85
winmisc.cFile · 0.85
amii_asknameFunction · 0.85
amii_player_selectionFunction · 0.85
really_doneFunction · 0.85
end_of_inputFunction · 0.85
gnome_player_selectionFunction · 0.85

Calls 3

maxledgernoFunction · 0.85
delete_levelfileFunction · 0.85
sethanguphandlerFunction · 0.50

Tested by

no test coverage detected