diff options
author | Diego Nieto Cid <dnietoc@gmail.com> | 2011-04-15 18:27:41 -0300 |
---|---|---|
committer | Diego Nieto Cid <dnietoc@gmail.com> | 2011-04-16 23:46:58 -0300 |
commit | 1f8d504f631531c199d7c6154a0dc442d80ea4a7 (patch) | |
tree | ae4f93198d2cbcfce32b2d56557e8a434f6b64d8 /console-client | |
parent | d028b59ccaac609f5d9e01907df30f9cecd2595e (diff) |
Print KeySymToUcs4 calls.
Diffstat (limited to 'console-client')
-rw-r--r-- | console-client/xkb/kstoucs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/console-client/xkb/kstoucs.c b/console-client/xkb/kstoucs.c index e1a553f9..b4602e17 100644 --- a/console-client/xkb/kstoucs.c +++ b/console-client/xkb/kstoucs.c @@ -8,6 +8,13 @@ struct ksmap { unsigned int KeySymToUcs4 (int keysym) { +#ifdef XKB_DEBUG + char *XKeysymToString(int keysym); + printf ("KeySymToUcs4: %s (%d) -> ", XKeysymToString (keysym), keysym); +unsigned int doit (int keysym) +{ +#endif + /* Control characters not covered by keysym map. */ if (keysym > 0 && keysym < 32) return keysym; @@ -34,4 +41,10 @@ KeySymToUcs4 (int keysym) #define NUM_KEYSYMS (sizeof kstoucs_map / sizeof(struct ksmap)) return find_ucs(keysym, &kstoucs_map[0], &kstoucs_map[NUM_KEYSYMS - 1]); +#ifdef XKB_DEBUG +} + unsigned int ret = doit (keysym); + printf ("%d\n", ret); + return ret; +#endif } |