Remove MERGE_ALT_FORM merge mode
authorRan Benita <ran234@gmail.com>
Fri, 13 Jul 2012 15:34:11 +0000 (18:34 +0300)
committerRan Benita <ran234@gmail.com>
Fri, 13 Jul 2012 16:07:03 +0000 (19:07 +0300)
commit0765064b35be2e1a0390bb9ecc4f8bad2879dbfd
treeb3607d8c1a78131895c197fc4cb845425137e36d
parentdd85790c73064715436b96fec5af7704e229a3d9
Remove MERGE_ALT_FORM merge mode

The mode comes from the "alternate" keyword, which is unused in
xkeyboard-config and mostly undocumented. Its purpose is to allow to
assign the same key name to multiple key codes, which is not allowed
otherwise (and doesn't make much sense). The xkblib specification
implies that this was part of the overlay functionality, which we also
no longer support.

If we do encounter this keyword, we just treat it as MERGE_DEFAULT. The
keycodes.c code will detect a collision and will ignore all but the
first key code (and the error count is not incremented).

Some peripheral code is also removed as a result.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/keymap-dump.c
src/misc.c
src/xkb-priv.h
src/xkbcomp/keycodes.c
src/xkbcomp/parser.y
src/xkbcomp/parseutils.c
src/xkbcomp/parseutils.h
src/xkbcomp/xkbcomp.h