Commit 14741800a8a424e8f4da933cf7368e26fc7f0cbd

Daniel Stone 2012-09-11T14:52:27

Constify keysym <-> Unicode lookup table Before: text data bss dec hex filename 234422 11288 2304 248014 3c8ce obj-amd64/.libs/libxkbcommon.so.0.0.0 After: text data bss dec hex filename 240694 5016 2304 248014 3c8ce obj-amd64/.libs/libxkbcommon.so.0.0.0 Signed-off-by: Daniel Stone <daniel@fooishbar.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/keysym-utf.c b/src/keysym-utf.c
index 6da5cd4..66de078 100644
--- a/src/keysym-utf.c
+++ b/src/keysym-utf.c
@@ -38,7 +38,7 @@
 #include "xkbcommon/xkbcommon.h"
 #include "utils.h"
 
-struct codepair {
+const struct codepair {
     xkb_keysym_t keysym;
     uint16_t ucs;
 } keysymtab[] = {