Handle key names consistently
authorRan Benita <ran234@gmail.com>
Sat, 28 Jul 2012 19:15:59 +0000 (22:15 +0300)
committerRan Benita <ran234@gmail.com>
Tue, 7 Aug 2012 08:09:42 +0000 (11:09 +0300)
commitb2c4331ac365bb7d92cecdb4d6e1f947d8d37d00
treefd574c0811cedce97c3648f27da65fecefd09c1b
parentc548c815296465f3ce41d8171e9f9cc50607213f
Handle key names consistently

We treat the key names as fixed length, non NUL terminated strings of
length XkbKeyNameLength, and use the appropriate *Text functions to
print them. We also use strncpy everywhere instead of memcpy to copy
the names, because it does some NUL padding and we might as well.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/text.c
src/text.h
src/xkbcomp/expr.c
src/xkbcomp/keycodes.c
src/xkbcomp/misc.c
src/xkbcomp/parser.y
src/xkbcomp/parseutils.c
src/xkbcomp/symbols.c
src/xkbcomp/xkbcomp-priv.h
src/xkbcomp/xkbcomp.h