diff options
author | Miles Bader <[email protected]> | 2007-08-13 13:51:08 +0000 |
---|---|---|
committer | Miles Bader <[email protected]> | 2007-08-13 13:51:08 +0000 |
commit | aaf34461ff5804e5cebe163b31e535da72e81d87 (patch) | |
tree | b096310b459b78e437f08ac0f1f00954840a5db5 /src/keyboard.c | |
parent | 61d032dfd91b811d59acd7605ac02758be97e912 (diff) | |
parent | 37cc095b6a175fb5a2fb18fa029eaf3aa3b3fa53 (diff) |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 846-851)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 88-92)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 242-244)
- Update from CVS
Revision: [email protected]/emacs--multi-tty--0--patch-31
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 8999dd0575..626748b6c1 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -487,7 +487,7 @@ static struct input_event * volatile kbd_store_ptr; /* The above pair of variables forms a "queue empty" flag. When we enqueue a non-hook event, we increment kbd_store_ptr. When we dequeue a non-hook event, we increment kbd_fetch_ptr. We say that - there is input available iff the two pointers are not equal. + there is input available if the two pointers are not equal. Why not just have a flag set and cleared by the enqueuing and dequeuing functions? Such a flag could be screwed up by interrupts @@ -3703,7 +3703,7 @@ restore_getcjmp (temp) kbd_buffer_store_event places events in kbd_buffer, and kbd_buffer_get_event retrieves them. */ -/* Return true iff there are any events in the queue that read-char +/* Return true if there are any events in the queue that read-char would return. If this returns false, a read-char would block. */ static int readable_events (flags) |