# HG changeset patch # User Kim F. Storm # Date 1076973118 0 # Node ID 8fa7ff960e1c063437e6273d8315fda43a2c9fd1 # Parent 8659505a7f3deb23f867f735e68e696e864d5574 *** empty log message *** diff -r 8659505a7f3d -r 8fa7ff960e1c src/ChangeLog --- 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 + + * 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 (tiny change) * cmds.c (Fend_of_line): Doc fix.