]> git.eshelyaron.com Git - emacs.git/commitdiff
(TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
authorKim F. Storm <storm@cua.dk>
Mon, 7 Mar 2005 10:49:51 +0000 (10:49 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 7 Mar 2005 10:49:51 +0000 (10:49 +0000)
src/blockinput.h

index 74ef7603f4020005b8f22c03b9d521fa216f4645..6aa865ea9be346015df830aa8f64b1c4d68fb39f 100644 (file)
@@ -98,12 +98,12 @@ extern int pending_atimers;
    and also reinvoke any pending signal.  */
 
 #define TOTALLY_UNBLOCK_INPUT                  \
-  if (interrupt_input_blocked != 0)            \
+  do if (interrupt_input_blocked != 0)         \
     {                                          \
       interrupt_input_blocked = 1;             \
       UNBLOCK_INPUT;                           \
     }                                          \
-  else
+  while (0)
 
 /* Undo any number of BLOCK_INPUT calls down to level LEVEL,
    and also (if the level is now 0) reinvoke any pending signal.  */