vmod: remove support for resolving integer to virtual modifier
authorRan Benita <ran234@gmail.com>
Wed, 15 Aug 2012 19:07:37 +0000 (22:07 +0300)
committerRan Benita <ran234@gmail.com>
Sun, 2 Sep 2012 16:17:09 +0000 (19:17 +0300)
commitf410622b4bcbe79d0c51e98e058a3bffee0b7a66
treed58c99f20cf5192c46d31b3273e93d170058af67
parentd3ddcf70e82b70e2a306d4678946a5fecd8d240b
vmod: remove support for resolving integer to virtual modifier

This is only relevant to the virtualModifier= statement in interpret
statements in xkb_compat. The current code allows to write e.g.
    virtualModifier = 4
to get the virtual modifier whose index happens to be 4 (possibly
declared in other files or sections, i.e. xkb_types). Doing this is
undeterministic, will break without notice, and not used anywhere.
Don't allow it.

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