keycodes: don't do unnecessary copies while merging
authorRan Benita <ran234@gmail.com>
Mon, 4 Mar 2013 08:33:18 +0000 (10:33 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 18 Mar 2013 22:20:05 +0000 (22:20 +0000)
commitea3cf26db5c6b71a7e3cb755c03db6757fd6634f
tree2561dddba5a9ea0a0f4ca9883590eb980957094a
parentcd6a71fc63577004ebc8a0e43a6cac260b8ff60d
keycodes: don't do unnecessary copies while merging

If 'into' in empty we can just steal 'from'.

Also move the alias-merging into the big function, it's nicer this way.

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