types: get rid of PreserveInfo
authorRan Benita <ran234@gmail.com>
Wed, 8 Aug 2012 16:53:55 +0000 (19:53 +0300)
committerRan Benita <ran234@gmail.com>
Wed, 8 Aug 2012 22:57:11 +0000 (01:57 +0300)
commitfafc1132d25c0ecf8c406c549d9c2dc894031b1d
treeb30dac4ecc074c4b754d6b63dda4416955ebf51d
parent0f1ca360f118dc48984b8e876894801809381238
types: get rid of PreserveInfo

We don't need the indirection. We store the preserve mask directly in
the entry, and create a new one if it doesn't exists (which is exactly
what the current code does in a roundabout way).

Incidentally this fixes a bug where the effective modifier mask of the
entries' preserve[] wasn't calculated, so the virtual modifiers had no
effect there.

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