qemu-e2k/replay
Eric Blake b5a1b44318 ui: Shorten references into InputEvent
An upcoming patch will alter how simple unions, like InputEvent, are
laid out, which will impact all lines of the form 'evt->u.XXX'
(expanding it to the longer 'evt->u.XXX.data').  For better
legibility in that patch, and less need for line wrapping, it's better
to use a temporary variable to reduce the effect of a layout change to
just the variable initializations, rather than every reference within
an InputEvent.

There was one instance in hid.c:hid_pointer_event() where the code
was referring to evt->u.rel inside the case label where evt->u.abs
is the correct name; thankfully, both members of the union have the
same type, so it happened to work, but it is now cleaner.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1457021813-10704-8-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2016-03-05 10:41:55 +01:00
..
Makefile.objs
replay-events.c all: Clean up includes 2016-02-04 17:41:30 +00:00
replay-input.c ui: Shorten references into InputEvent 2016-03-05 10:41:55 +01:00
replay-internal.c all: Clean up includes 2016-02-04 17:41:30 +00:00
replay-internal.h all: Clean up includes 2016-02-23 12:43:05 +00:00
replay-time.c all: Clean up includes 2016-02-04 17:41:30 +00:00
replay.c replay: Set error location properly when parsing options 2016-02-19 13:46:44 +01:00