From 1f8d504f631531c199d7c6154a0dc442d80ea4a7 Mon Sep 17 00:00:00 2001 From: Diego Nieto Cid Date: Fri, 15 Apr 2011 18:27:41 -0300 Subject: Print KeySymToUcs4 calls. --- console-client/xkb/kstoucs.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'console-client') 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 } -- cgit v1.2.3