diff options
| author | Dmitry Antipov | 2012-11-02 13:44:08 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-11-02 13:44:08 +0400 |
| commit | 2b371ff75d64fb34466119e33f5cbb2c5eb27364 (patch) | |
| tree | 0f1ac88cdd34916d10f02aa6a738a5473f136be8 /src/termhooks.h | |
| parent | 052f924a01f8a65ca0bfc9e6584302613e019489 (diff) | |
| download | emacs-2b371ff75d64fb34466119e33f5cbb2c5eb27364.tar.gz emacs-2b371ff75d64fb34466119e33f5cbb2c5eb27364.zip | |
Remove pad from struct input_event.
* termhooks.h (struct input_event): Remove padding field.
Adjust comment.
* keyboard.c (event_to_kboard): Simplify because frame_or_window
member is never cons for a long time. Adjust comment.
(mark_kboards): Adjust because SELECTION_REQUEST_EVENT and
SELECTION_CLEAR_EVENT has no Lisp_Objects to mark. Add comment.
* xterm.c (handle_one_xevent): Do not initialize frame_or_window
field of SELECTION_REQUEST_EVENT and SELECTION_CLEAR_EVENT.
Diffstat (limited to 'src/termhooks.h')
| -rw-r--r-- | src/termhooks.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index c33c2dd1587..2d97fcdbc1e 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -242,16 +242,8 @@ struct input_event | |||
| 242 | Lisp_Object x, y; | 242 | Lisp_Object x, y; |
| 243 | Time timestamp; | 243 | Time timestamp; |
| 244 | 244 | ||
| 245 | /* This is padding just to put the frame_or_window field | 245 | /* This field is copied into a vector while the event is in |
| 246 | past the size of struct selection_input_event. */ | 246 | the queue, so that garbage collections won't kill it. */ |
| 247 | int *padding[2]; | ||
| 248 | |||
| 249 | /* This field is copied into a vector while the event is in the queue, | ||
| 250 | so that garbage collections won't kill it. */ | ||
| 251 | /* In a menu_bar_event, this is a cons cell whose car is the frame | ||
| 252 | and whose cdr is the Lisp object that is the event's value. */ | ||
| 253 | /* This field is last so that struct selection_input_event | ||
| 254 | does not overlap with it. */ | ||
| 255 | Lisp_Object frame_or_window; | 247 | Lisp_Object frame_or_window; |
| 256 | 248 | ||
| 257 | /* Additional event argument. This is used for TOOL_BAR_EVENTs and | 249 | /* Additional event argument. This is used for TOOL_BAR_EVENTs and |