changeset 54026:8fa7ff960e1c

*** empty log message ***
author Kim F. Storm <storm@cua.dk>
date Mon, 16 Feb 2004 23:11:58 +0000
parents 8659505a7f3d
children 32c7f0e32819
files src/ChangeLog
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Feb 16 22:17:42 2004 +0000
+++ b/src/ChangeLog	Mon Feb 16 23:11:58 2004 +0000
@@ -1,3 +1,17 @@
+2004-02-17  Kim F. Storm  <storm@cua.dk>
+
+	* keyboard.c: Rework previous change; it didn't consider that the
+	buf array was allocated on the stack.
+	(prev_read): Remove variable.
+	(read_avail_input_buf): New static event buffer array.
+	(in_read_avail_input): New static variable to avoid re-entrancy.
+	(read_avail_input): Change buf to pinter to read_avail_input_buf.
+	Use in_read_avail_input to guard against re-entry.
+	Do not initialize read_avail_input_buf here; instead assume it
+	is always cleared on entry.  To ensure that, we clear (just) the
+	entries that were used before we return.
+	(init_keyboard): Initialize read_avail_input_buf here.
+
 2004-02-16  Jesper Harder  <harder@ifa.au.dk>  (tiny change)
 
 	* cmds.c (Fend_of_line): Doc fix.