handle interrupts etc More...
Go to the source code of this file.
Functions | |
| void | interrupt () |
| INTERRUPT() More... | |
| void | init_interrupt () |
| INIT_INTERRUPT. More... | |
| void | handle_interrupt () |
| HANDLE_INTERRUPT. More... | |
Variables | |
| long | interrupted =FALSE |
handle interrupts etc
Definition in file interrupt.c.
| void handle_interrupt | ( | ) |
HANDLE_INTERRUPT.
This deals with an eventual interrupt. Return TRUE if execution continues normally, otherwise abort query, toggle trace on or off, or quit Wild_Life (suicide).
Definition at line 52 of file interrupt.c.
References abort_life(), DIGIT, EOLN, exit_life(), FALSE, input_state, interrupted, open_input_file(), prompt, quietflag, read_char(), restore_state(), show_count(), stdin_cleareof(), stepcount, stepflag, steptrace, trace, TRUE, and verbose.
| void init_interrupt | ( | ) |
INIT_INTERRUPT.
This initialises interrupts by trapping the interrupt signal and sending it to INTERRUPT.
Definition at line 36 of file interrupt.c.
References interrupt().
| void interrupt | ( | ) |
INTERRUPT()
This routine is called whenever the user types CONTROL C which generates an interrupt. The interrupt is dealt with later, when convenient, or ignored.
Definition at line 21 of file interrupt.c.
References interrupted, and TRUE.
| long interrupted =FALSE |
Definition at line 12 of file interrupt.c.
1.8.6