symbols: move keysyms into LevelInfo
authorRan Benita <ran234@gmail.com>
Mon, 24 Sep 2012 08:55:20 +0000 (10:55 +0200)
committerRan Benita <ran234@gmail.com>
Mon, 24 Sep 2012 10:33:06 +0000 (12:33 +0200)
commite44cd2e93b608617bb8b9bfc3aaa1b5e738e9c6a
tree6ac6d10fc5c76ba0af52a562e488c0e06e88d31b
parenteaf9515229289b1ad1f7d8f202b2a66d735ef36a
symbols: move keysyms into LevelInfo

Instead of maintaining a syms array in the GroupInfo + sym_index's in
the levels. This simplifies the code somewhat.
In order not to alloc for every level instead of every group, we only do
it if the level has more than one keysym (with a union). Since for now
this is a special case, it actually works out better memory-wise.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/utils.h
src/xkbcomp/symbols.c