From f52671a4d1f55b339fc136961dfc645b1b7589f2 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 24 Mar 2012 12:31:55 +0200 Subject: [PATCH] Remove a few remaining uses of the KeySym type Signed-off-by: Ran Benita --- makekeys/makekeys.c | 13 +++++++------ test/xkey.c | 7 ++++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/makekeys/makekeys.c b/makekeys/makekeys.c index cf96f13..c731e40 100644 --- a/makekeys/makekeys.c +++ b/makekeys/makekeys.c @@ -28,12 +28,13 @@ from The Open Group. /* Constructs hash tables for XStringToKeysym and XKeysymToString. */ -#include -#include +#include "xkbcommon/xkbcommon.h" + #include #include #include #include +#include typedef uint32_t Signature; @@ -41,7 +42,7 @@ typedef uint32_t Signature; static struct info { char *name; - KeySym val; + xkb_keysym_t val; } info[KTNUM]; #define MIN_REHASH 15 @@ -50,11 +51,11 @@ static struct info { static char tab[KTNUM]; static unsigned short offsets[KTNUM]; static unsigned short indexes[KTNUM]; -static KeySym values[KTNUM]; +static xkb_keysym_t values[KTNUM]; static int ksnum = 0; static int -parse_line(const char *buf, char *key, KeySym *val, char *prefix) +parse_line(const char *buf, char *key, xkb_keysym_t *val, char *prefix) { int i; char alias[128]; @@ -109,7 +110,7 @@ main(int argc, char *argv[]) int best_max_rehash; int best_z = 0; int num_found; - KeySym val; + xkb_keysym_t val; char key[128], prefix[128]; char buf[1024]; diff --git a/test/xkey.c b/test/xkey.c index 00e0929..52914a2 100644 --- a/test/xkey.c +++ b/test/xkey.c @@ -3,17 +3,18 @@ #include #include #include +#include static void print_keysym(const char *s) { - KeySym ks = xkb_string_to_keysym(s); + xkb_keysym_t ks = xkb_string_to_keysym(s); if (ks == NoSymbol) printf("NoSymbol\n"); else printf("0x%lX\n", ks); } -static void print_string(KeySym ks) +static void print_string(xkb_keysym_t ks) { char s[16]; @@ -24,7 +25,7 @@ static void print_string(KeySym ks) int main(int argc, char *argv[]) { int mode; - KeySym sym; + xkb_keysym_t sym; if (argc < 3) { fprintf(stderr, "error: not enough arguments\n"); -- 2.7.4