Keep real and virtual mods in the same table in the keymap
authorRan Benita <ran234@gmail.com>
Fri, 5 Oct 2012 20:46:21 +0000 (22:46 +0200)
committerRan Benita <ran234@gmail.com>
Sat, 6 Oct 2012 19:41:59 +0000 (21:41 +0200)
commit424de613af4c0a8121213bbee8c4fdd8364612e5
tree60ccce13d87c24cf7bd1411bf1889bed0830472a
parent1005b320f14339236ff53a07b13d6dcbad52bf19
Keep real and virtual mods in the same table in the keymap

We change the keymap->vmods array into keymap->mods, and change it's
member type from struct xkb_vmod to struct xkb_mod. This table now
includes the real modifiers in the first 8 places. To distinguish
between them, we add an enum mod_type to struct xkb_mod.

Besides being a more reasonable approach, this enables us to share
some code later, remove XKB_NUM_CORE_MODS (though the 0xff mask still
appears in a few places), and prepares us to flat out remove the
distinction in the future. This commit just does the conversion.

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