static void hook_quit(const char *str) { int i; for (i = 0; i < term_count; i++) { if (angband_term[i]) { term_nuke(angband_term[i]); } } endwin(); }
/* * A hook for "quit()". * * Close down, then fall back into "quit()". */ static void quit_hook(const char * s) { int j; /* Scan windows */ for (j = TERM_WIN_MAX - 1; j >= 0; j--) { /* Unused */ if (!angband_term[j]) continue; /* Nuke it */ term_nuke(angband_term[j]); } }
/** * A hook for "quit()". * * Close down, then fall back into "quit()". */ static void quit_hook(const char *s) { int j; /* Unused parameter */ (void)s; /* Scan windows */ for (j = ANGBAND_TERM_MAX - 1; j >= 0; j--) { /* Unused */ if (!angband_term[j]) continue; /* Nuke it */ term_nuke(angband_term[j]); } }
/* * A hook for "quit()". * * Close down, then fall back into "quit()". */ static void quit_hook(cptr s) { int j; /* Ignore s */ (void) s; /* Scan windows */ for (j = 8 - 1; j >= 0; j--) { /* Unused */ if (!angband_term[j]) continue; /* Nuke it */ term_nuke(angband_term[j]); } }
static void quit_hook(cptr s) { int i; for (i = MAX_TERM_DATA - 1; i >= 0; --i) { /* Shut down the term windows */ if (angband_term[i]) { term_nuke(angband_term[i]); emx_nuke(((termWindow*)angband_term[i])->instance); } } /* Shut down window system - doesn't return */ emx_endPM(s); }
/* * A hook for "quit()". * * Close down, then fall back into "quit()". */ static void quit_hook(cptr s) { int j; /* Unused parameter */ (void)s; /* Scan windows */ for (j = REPOSBAND_TERM_MAX - 1; j >= 0; j--) { /* Unused */ if (!reposband_term[j]) continue; /* Nuke it */ term_nuke(reposband_term[j]); } }