• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/evdev_autorepeat.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(REP_DELAY) || (defined(HAVE_DECL_REP_DELAY) && HAVE_DECL_REP_DELAY)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((REP_DELAY) == (0x00), "REP_DELAY != 0x00");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define REP_DELAY 0x00
12 #endif
13 #if defined(REP_PERIOD) || (defined(HAVE_DECL_REP_PERIOD) && HAVE_DECL_REP_PERIOD)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((REP_PERIOD) == (0x01), "REP_PERIOD != 0x01");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define REP_PERIOD 0x01
19 #endif
20 
21 #ifndef XLAT_MACROS_ONLY
22 
23 # ifdef IN_MPERS
24 
25 #  error static const struct xlat evdev_autorepeat in mpers mode
26 
27 # else
28 
29 static
30 const struct xlat evdev_autorepeat[] = {
31  [REP_DELAY] = XLAT(REP_DELAY),
32  [REP_PERIOD] = XLAT(REP_PERIOD),
33  XLAT_END
34 };
35 
36 # endif /* !IN_MPERS */
37 
38 #endif /* !XLAT_MACROS_ONLY */
39