summaryrefslogtreecommitdiff
path: root/makekeys
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-03-24 13:27:48 +0200
committerDaniel Stone <daniel@fooishbar.org>2012-03-27 14:16:36 +0100
commit602e87805bdb829dfc0867b1466e2b1dc729ab52 (patch)
tree04d955125b823624cf29dd3701b3789e51438425 /makekeys
parentd3908b631c531aa3721d91297badad1c85e3c4f1 (diff)
downloadlibxkbcommon-602e87805bdb829dfc0867b1466e2b1dc729ab52.tar.gz
libxkbcommon-602e87805bdb829dfc0867b1466e2b1dc729ab52.tar.bz2
libxkbcommon-602e87805bdb829dfc0867b1466e2b1dc729ab52.zip
Define our own NoSymbol value and use it
Since we have our own xkb_keysym_t type, it makes sense to have our own NoSymbol value instead of the one from X11/X.h. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'makekeys')
-rw-r--r--makekeys/makekeys.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/makekeys/makekeys.c b/makekeys/makekeys.c
index c731e40..4d7767f 100644
--- a/makekeys/makekeys.c
+++ b/makekeys/makekeys.c
@@ -26,7 +26,10 @@ from The Open Group.
*/
-/* Constructs hash tables for XStringToKeysym and XKeysymToString. */
+/*
+ * Constructs hash tables for xkb_keysym_to_string and
+ * xkb_string_from_keysym.
+ */
#include "xkbcommon/xkbcommon.h"
@@ -151,9 +154,9 @@ main(int argc, char *argv[])
fclose(fptr);
}
- /* Special case NoSymbol. */
+ /* Special case XKB_KEYSYM_NO_SYMBOL. */
info[ksnum].name = strdup("NoSymbol");
- info[ksnum].val = 0L;
+ info[ksnum].val = XKB_KEYSYM_NO_SYMBOL;
ksnum++;
printf("/* This file is generated from keysymdef.h. */\n");