Blacklist REP_MAX so it doesn't shadow REP_PERIOD
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 26 Feb 2018 06:59:58 +0000 (16:59 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 26 Feb 2018 07:12:08 +0000 (17:12 +1000)
commita67d1964ffa53622322736d32b48162d94c4208a
tree419fcc6756a3228ecab81c91ecca27b4c41114d3
parent3799acd49ed6cb25e8838a49dafcf057415fe6e3
Blacklist REP_MAX so it doesn't shadow REP_PERIOD

They have the same value, so the _MAX code would shadow the real code, causing
issues in any client that needs to get all event names from libevdev.
Specifically, the loop of:
  for each code in 0 to max-for-type:
      print(name)
would not show up the code (but the _MAX) code instead. This causes issues
with clients that rely on name resolution that works. And the _MAX values are
special values anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
libevdev/make-event-names.py
test/test-event-names.c