diff options
Diffstat (limited to 'src/blockinput.h')
| -rw-r--r-- | src/blockinput.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/blockinput.h b/src/blockinput.h index a3b50d2a0f2..6aa865ea9be 100644 --- a/src/blockinput.h +++ b/src/blockinput.h | |||
| @@ -98,12 +98,12 @@ extern int pending_atimers; | |||
| 98 | and also reinvoke any pending signal. */ | 98 | and also reinvoke any pending signal. */ |
| 99 | 99 | ||
| 100 | #define TOTALLY_UNBLOCK_INPUT \ | 100 | #define TOTALLY_UNBLOCK_INPUT \ |
| 101 | if (interrupt_input_blocked != 0) \ | 101 | do if (interrupt_input_blocked != 0) \ |
| 102 | { \ | 102 | { \ |
| 103 | interrupt_input_blocked = 1; \ | 103 | interrupt_input_blocked = 1; \ |
| 104 | UNBLOCK_INPUT; \ | 104 | UNBLOCK_INPUT; \ |
| 105 | } \ | 105 | } \ |
| 106 | else | 106 | while (0) |
| 107 | 107 | ||
| 108 | /* Undo any number of BLOCK_INPUT calls down to level LEVEL, | 108 | /* Undo any number of BLOCK_INPUT calls down to level LEVEL, |
| 109 | and also (if the level is now 0) reinvoke any pending signal. */ | 109 | and also (if the level is now 0) reinvoke any pending signal. */ |
| @@ -111,10 +111,8 @@ extern int pending_atimers; | |||
| 111 | #define UNBLOCK_INPUT_TO(LEVEL) \ | 111 | #define UNBLOCK_INPUT_TO(LEVEL) \ |
| 112 | do \ | 112 | do \ |
| 113 | { \ | 113 | { \ |
| 114 | int oldlevel = interrupt_input_blocked; \ | ||
| 115 | interrupt_input_blocked = (LEVEL) + 1; \ | 114 | interrupt_input_blocked = (LEVEL) + 1; \ |
| 116 | if (interrupt_input_blocked != oldlevel + 1) \ | 115 | UNBLOCK_INPUT; \ |
| 117 | UNBLOCK_INPUT; \ | ||
| 118 | } \ | 116 | } \ |
| 119 | while (0) | 117 | while (0) |
| 120 | 118 | ||