Mercurial > emacs
comparison src/blockinput.h @ 60474:3bb3556e7af0
(UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Mon, 07 Mar 2005 01:54:13 +0000 |
parents | 306f7ce8d80d |
children | 335c6a2f0c12 |
comparison
equal
deleted
inserted
replaced
60473:737e494abed6 | 60474:3bb3556e7af0 |
---|---|
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) \ |
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 |
121 #define UNBLOCK_INPUT_RESIGNAL UNBLOCK_INPUT | 119 #define UNBLOCK_INPUT_RESIGNAL UNBLOCK_INPUT |
122 | 120 |