Commit 239a5be10e7bd248e64d4da62c192c01bd93bd60

Ran Benita 2012-10-04T11:48:56

keysym-utf: make keysym->unicode table a bit smaller Saves a few kbytes, and unlikely to change. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/keysym-utf.c b/src/keysym-utf.c
index 8bf04f9..b1f6f15 100644
--- a/src/keysym-utf.c
+++ b/src/keysym-utf.c
@@ -38,8 +38,9 @@
 #include "xkbcommon/xkbcommon.h"
 #include "utils.h"
 
+/* We don't use the uint32_t types here, to save some space. */
 struct codepair {
-    xkb_keysym_t keysym;
+    uint16_t keysym;
     uint16_t ucs;
 };