comparison src/macterm.c @ 51570:5bc2bb8c1fef

(mac_check_for_quit_char): Don't pass uninitialized data to kbd_buffer_store_event.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 15 Jun 2003 20:59:24 +0000
parents 73188b413b0f
children 695cf19ef79e
comparison
equal deleted inserted replaced
51569:e7bd8581e306 51570:5bc2bb8c1fef
8592 { 8592 {
8593 struct input_event e; 8593 struct input_event e;
8594 struct mac_output *mwp = 8594 struct mac_output *mwp =
8595 (mac_output *) GetWRefCon (FrontNonFloatingWindow ()); 8595 (mac_output *) GetWRefCon (FrontNonFloatingWindow ());
8596 /* Use an input_event to emulate what the interrupt handler does. */ 8596 /* Use an input_event to emulate what the interrupt handler does. */
8597 EVENT_INIT (e);
8597 e.kind = ASCII_KEYSTROKE_EVENT; 8598 e.kind = ASCII_KEYSTROKE_EVENT;
8598 e.code = quit_char; 8599 e.code = quit_char;
8599 e.arg = NULL; 8600 e.arg = NULL;
8600 e.modifiers = NULL; 8601 e.modifiers = NULL;
8601 e.timestamp = EventTimeToTicks (GetEventTime (event)) * (1000/60); 8602 e.timestamp = EventTimeToTicks (GetEventTime (event)) * (1000/60);