types: move preserve directly into xkb_kt_map_entry
authorRan Benita <ran234@gmail.com>
Mon, 6 Aug 2012 18:31:17 +0000 (21:31 +0300)
committerRan Benita <ran234@gmail.com>
Tue, 7 Aug 2012 10:20:37 +0000 (13:20 +0300)
commit233d85c427cbb9ecc53e9bc9784ceb0bd10fb87b
treee4f8b8a57c31d7c4db4bbb53433f51123b99f573
parent6b75dd2dcbf469bccdfb3d4bda1b01493b787a68
types: move preserve directly into xkb_kt_map_entry

Currently each xkb_key_type has a preserve array, which is only allocated
if a preserve[] statement is specified in the type. In this case each map
entry has an element in the array.

The space savings are negligible; put this field where it logically
belongs.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/keymap-dump.c
src/xkb-priv.h
src/xkbcomp/keytypes.c
src/xkbcomp/xkbcomp.c