action: simplify Check* functions
authorRan Benita <ran234@gmail.com>
Thu, 13 Feb 2014 21:11:31 +0000 (23:11 +0200)
committerRan Benita <ran234@gmail.com>
Thu, 13 Feb 2014 22:37:13 +0000 (00:37 +0200)
commit6248b09feb6d960e2c6775b1cb3a801a5c91136d
treef25f73ea8aeb6ab5637ee5a244e67664890c3bf9
parentd3d55f1c4e8fbb91b205cfb147c2ebea66fcecb4
action: simplify Check* functions

Instead of using those t1 t2 variables, pass the final destinations
directly (while making sure they are not modified in case of error).

This also ensures the types are right, e.g. in CheckGroupField it should
be int32_t, not xkb_layout_index_t (and indeed it takes a negation!).

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