ctx: adapt to the len-aware atom functions
authorRan Benita <ran234@gmail.com>
Sun, 21 Jul 2013 14:01:20 +0000 (17:01 +0300)
committerRan Benita <ran234@gmail.com>
Sun, 21 Jul 2013 14:07:41 +0000 (17:07 +0300)
commit9e801ff782c592d89273939c1d84d8c62674f57e
tree94ada4502442fabfc8c07042dddae97e76132a58
parent7e0ae4b4d5bfcebd7bf4cefcefe681ea7ecc5f61
ctx: adapt to the len-aware atom functions

xkb_atom_intern now takes a len parameter. Turns out though that almost
all of our xkb_atom_intern calls are called on string literals, the
length of which we know statically. So we add a macro to micro-optimize
this case.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/context.c
src/context.h
src/xkbcomp/keymap.c
src/xkbcomp/parser.y
src/xkbcomp/scanner.c
src/xkbcomp/symbols.c
src/xkbcomp/types.c