Unify some string tables from xkbcomp, text and keymap-dump
authorRan Benita <ran234@gmail.com>
Sun, 2 Sep 2012 18:45:42 +0000 (21:45 +0300)
committerRan Benita <ran234@gmail.com>
Mon, 3 Sep 2012 07:31:13 +0000 (10:31 +0300)
commitaf2a8b3a3745078aba3534fb554eea125817f827
tree20e0d4dec8a61b08bad7f56ee9c6d5355655b8f1
parent7ae0c6bac4759e9b56c4a5115c321b66012ce9dc
Unify some string tables from xkbcomp, text and keymap-dump

We move the LookupEntry struct from expr.h to text.h, along with most of
the lookup tables. This makes them available everywhere.
Looking up a value in the LookupEntry format is slower than direct index
mapping, but it allows multiple names per value (with the canonical one
being first) and "all"- and "none"-type masks. These functions are not
used anywhere efficiency matters.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/keymap-dump.c
src/text.c
src/text.h
src/xkb-priv.h
src/xkbcomp/action.c
src/xkbcomp/action.h
src/xkbcomp/compat.c
src/xkbcomp/expr.c
src/xkbcomp/expr.h
src/xkbcomp/vmod.c