]> granicus.if.org Git - strace/commit
Switch to use of value-indexed xlats for evdev constants
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 2 Apr 2018 19:09:15 +0000 (21:09 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 27 Apr 2018 00:56:25 +0000 (00:56 +0000)
commit86bfc08a926ffc56a1309944c007ccfb1e4dd6fd
treec151d4c6a8243064c31b31795775d4776848a54f
parent728e9167e220bf930cecd3b31a47265a316cea4f
Switch to use of value-indexed xlats for evdev constants

* xlat/evdev_abs.in: Add "#value_indexed" directive.
* xlat/evdev_autorepeat.in: Likewise.
* xlat/evdev_ff_status.in: Likewise.
* xlat/evdev_keycode.in: Likewise.
* xlat/evdev_leds.in: Likewise.
* xlat/evdev_misc.in: Likewise.
* xlat/evdev_prop.in: Likewise.
* xlat/evdev_relative_axes.in: Likewise.
* xlat/evdev_snd.in: Likewise.
* xlat/evdev_switch.in: Likewise.
* xlat/evdev_sync.in: Likewise.
* xlat/evdev_ff_types.in: Add a comment about sorting.
* evdev.c (keycode_ioctl, keycode_V2_ioctl): Use printxval_index
instead of printxval.
(bit_ioctl): Use XT_SORTED for evdev_ff_types, use XT_INDEXED
for other xlats.
(evdev_read_ioctl): Use XT_INDEXED for all xlats.
* ioctl.c (evdev_decode_number): Use printxval_indexn instead of
printxval for evdev_abs.
14 files changed:
evdev.c
ioctl.c
xlat/evdev_abs.in
xlat/evdev_autorepeat.in
xlat/evdev_ff_status.in
xlat/evdev_ff_types.in
xlat/evdev_keycode.in
xlat/evdev_leds.in
xlat/evdev_misc.in
xlat/evdev_prop.in
xlat/evdev_relative_axes.in
xlat/evdev_snd.in
xlat/evdev_switch.in
xlat/evdev_sync.in