From 57bcfed7897bde8c7aa1f7f00abf0cf3db2da41f Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 4 Oct 2013 10:55:53 +0200 Subject: [PATCH] - rcsim: move enumeration to header --- src/create_rcsim_h.sh | 6 ++++++ src/rcsim.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/create_rcsim_h.sh b/src/create_rcsim_h.sh index c7973e354..177b79dd5 100755 --- a/src/create_rcsim_h.sh +++ b/src/create_rcsim_h.sh @@ -44,6 +44,12 @@ sed -n '/^[[:space:]]*RC_0/,/^[[:space:]]*RC_analog_off/s/^[[:space:]]*/ /p' dri cat << EOF }; +enum { // not defined in input.h but used like that, at least in 2.4.22 + KEY_RELEASED = 0, + KEY_PRESSED, + KEY_AUTOREPEAT +}; + struct key{ char *name; unsigned long code; diff --git a/src/rcsim.c b/src/rcsim.c index 57aa215f1..c274f6c4b 100644 --- a/src/rcsim.c +++ b/src/rcsim.c @@ -68,12 +68,6 @@ enum initiators }; #endif -enum { // not defined in input.h but used like that, at least in 2.4.22 - KEY_RELEASED = 0, - KEY_PRESSED, - KEY_AUTOREPEAT -}; - #include "rcsim.h" void usage(char *n){