/* Get out fast. This is used by the ctrl-C interrupt handler, under Unix. It doesn't pause and wait for a keypress, and it calls the Glk interrupt handler. Otherwise it's the same as glk_exit(). */ void gli_fast_exit() { if (gli_interrupt_handler) { (*gli_interrupt_handler)(); } gli_streams_close_all(); exit(0); }
/* Get out fast. This is used by the ctrl-C interrupt handler, under Unix. It doesn't pause and wait for a keypress, and it calls the Glk interrupt handler. Otherwise it's the same as glk_exit(). */ void gli_fast_exit() { if (gli_interrupt_handler) { (*gli_interrupt_handler)(); } gli_streams_close_all(); endwin(); putchar('\n'); exit(0); }
void winexit(void) { JNIEnv *env = JNU_GetEnv(); glk_select_poll(NULL); /* flush any pending output */ gli_streams_close_all(); //todo gli_fileref_delete_all(); //todo (*env)->DeleteGlobalRef(env, _this); _this = 0; // any cleaner way to have glk_exit() not returning (as per spec)? longjmp(_quit_env, 1); }