diff options
author | Guillermo Ramos | 2011-09-20 22:32:56 +0200 |
---|---|---|
committer | Guillermo Ramos | 2011-09-20 22:32:56 +0200 |
commit | d26cfab77984803f14bd198880670241f8cdffee (patch) | |
tree | 0a7ab3448b629f6eef714b6703679986c2700753 /evspy-core.h | |
parent | f680abf1814f61f1a9445fdc84f05d10036c513f (diff) | |
download | evspy-d26cfab77984803f14bd198880670241f8cdffee.tar.gz |
Fixed redundant code in AltGr handling
Diffstat (limited to 'evspy-core.h')
-rw-r--r-- | evspy-core.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/evspy-core.h b/evspy-core.h index 49da4b5..6cbe913 100644 --- a/evspy-core.h +++ b/evspy-core.h @@ -142,18 +142,13 @@ * Returns the character associated with event code c when altgr is pressed */ #ifdef EVS_ALTGR_ENABLED -# define evs_altgr(c) \ - ({ \ - void *__vp; \ - char __c; \ - __vp = khm_get(ahm, (c)); \ - if (__vp) __c = *(char *)__vp; \ - else __c = map[c]; \ - __c; \ - }) -#else -# define evs_altgr(c) \ +#define evs_altgr(c) \ ({ \ - (c); \ - }) + void *__vp; \ + char __c; \ + __vp = khm_get(ahm, (c)); \ + if (__vp) __c = *(char *)__vp; \ + else __c = map[c]; \ + __c; \ +}) #endif |