diff options
| author | Daniel Colascione | 2012-09-17 04:07:36 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2012-09-17 04:07:36 -0800 |
| commit | 2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (patch) | |
| tree | 6dd6784d63e54cb18071df8e28fbdbc27d418728 /src/blockinput.h | |
| parent | f701ab72dd55460d23c8b029550aa4d7ecef3cfa (diff) | |
| parent | bb7dce392f6d9d5fc4b9d7de09ff920a52f07669 (diff) | |
| download | emacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.tar.gz emacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.zip | |
Merge from trunk
Diffstat (limited to 'src/blockinput.h')
| -rw-r--r-- | src/blockinput.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/blockinput.h b/src/blockinput.h index dc02919cf4f..7501bfc91a0 100644 --- a/src/blockinput.h +++ b/src/blockinput.h | |||
| @@ -67,15 +67,10 @@ extern int pending_atimers; | |||
| 67 | If doing signal-driven input, and a signal came in when input was | 67 | If doing signal-driven input, and a signal came in when input was |
| 68 | blocked, reinvoke the signal handler now to deal with it. | 68 | blocked, reinvoke the signal handler now to deal with it. |
| 69 | 69 | ||
| 70 | We used to have two possible definitions of this macro - one for | 70 | Always test interrupt_input_pending; that's not too expensive, and |
| 71 | when SIGIO was #defined, and one for when it wasn't; when SIGIO | 71 | it'll never get set if we don't need to resignal. This is simpler |
| 72 | wasn't #defined, we wouldn't bother to check if we should re-invoke | 72 | than dealing here with every configuration option that might affect |
| 73 | the signal handler. But that doesn't work very well; some of the | 73 | whether interrupt_input_pending can be nonzero. */ |
| 74 | files which use this macro don't #include the right files to get | ||
| 75 | SIGIO. | ||
| 76 | |||
| 77 | So, we always test interrupt_input_pending now; that's not too | ||
| 78 | expensive, and it'll never get set if we don't need to resignal. */ | ||
| 79 | 74 | ||
| 80 | #define UNBLOCK_INPUT \ | 75 | #define UNBLOCK_INPUT \ |
| 81 | do \ | 76 | do \ |
| @@ -89,7 +84,7 @@ extern int pending_atimers; | |||
| 89 | do_pending_atimers (); \ | 84 | do_pending_atimers (); \ |
| 90 | } \ | 85 | } \ |
| 91 | else if (interrupt_input_blocked < 0) \ | 86 | else if (interrupt_input_blocked < 0) \ |
| 92 | abort (); \ | 87 | emacs_abort (); \ |
| 93 | } \ | 88 | } \ |
| 94 | while (0) | 89 | while (0) |
| 95 | 90 | ||
| @@ -124,4 +119,3 @@ extern int pending_atimers; | |||
| 124 | extern void reinvoke_input_signal (void); | 119 | extern void reinvoke_input_signal (void); |
| 125 | 120 | ||
| 126 | #endif /* EMACS_BLOCKINPUT_H */ | 121 | #endif /* EMACS_BLOCKINPUT_H */ |
| 127 | |||