Mercurial > emacs
comparison src/blockinput.h @ 60481:335c6a2f0c12
(TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 07 Mar 2005 10:49:51 +0000 |
parents | 3bb3556e7af0 |
children | a8fa7c632ee4 29e773288013 |
comparison
equal
deleted
inserted
replaced
60480:9fb42eb03094 | 60481:335c6a2f0c12 |
---|---|
96 | 96 |
97 /* Undo any number of BLOCK_INPUT calls, | 97 /* Undo any number of BLOCK_INPUT calls, |
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. */ |
110 | 110 |
111 #define UNBLOCK_INPUT_TO(LEVEL) \ | 111 #define UNBLOCK_INPUT_TO(LEVEL) \ |