Clean up Init/Clear functions
authorRan Benita <ran234@gmail.com>
Thu, 13 Sep 2012 21:21:54 +0000 (00:21 +0300)
committerRan Benita <ran234@gmail.com>
Fri, 14 Sep 2012 18:09:48 +0000 (21:09 +0300)
commit96c21e1577fa6462efc4d98a6f72a16ba521f6a3
tree6ea489d16d5e4a712b8831d2a9b349089c5506c2
parent7b5a1dd556f2f4d21f7a3265e614cae3a91e36bb
Clean up Init/Clear functions

- The Clear* functions should just free the memory associated with the
  object. If the object is used again, it is Init'd again.
- s/Free/Clear if the actual pointer is not free'd.
- Zeroise object in Init and only initialize non-zero fields.

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