diff options
| author | Joakim Verona | 2012-09-19 01:09:51 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-09-19 01:09:51 +0200 |
| commit | 6c86337db3f2b22977d7b94b054458a2d446c504 (patch) | |
| tree | 04725c50cbd76c8ffd0faf4cdce895a89a506a58 /src/blockinput.h | |
| parent | aac9139d11cf7f9ee84d931ada85be8fa0c90f21 (diff) | |
| parent | fefa299077c02a931e5e72f7646e3dfa28f5e8ff (diff) | |
| download | emacs-6c86337db3f2b22977d7b94b054458a2d446c504.tar.gz emacs-6c86337db3f2b22977d7b94b054458a2d446c504.zip | |
not compiling yet
Diffstat (limited to 'src/blockinput.h')
| -rw-r--r-- | src/blockinput.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/blockinput.h b/src/blockinput.h index 3f61b2b27b9..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 \ |