aboutsummaryrefslogtreecommitdiffstats
path: root/src/blockinput.h
diff options
context:
space:
mode:
authorKaroly Lorentey2005-03-16 16:03:44 +0000
committerKaroly Lorentey2005-03-16 16:03:44 +0000
commit38d2de214077b4e600d9f9d20d7ec81e1f1c8908 (patch)
treefe3d42c04fd616f8e567e27331134d9b55c63dd9 /src/blockinput.h
parenta810eaf92838985d9648acb470dc3c8d26847c15 (diff)
parent418b505281d03c422860a5116c328c91455724d2 (diff)
downloademacs-38d2de214077b4e600d9f9d20d7ec81e1f1c8908.tar.gz
emacs-38d2de214077b4e600d9f9d20d7ec81e1f1c8908.zip
Merged from miles@gnu.org--gnu-2005 (patch 160-161)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-160 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-161 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-308
Diffstat (limited to 'src/blockinput.h')
-rw-r--r--src/blockinput.h8
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