keymap: don't use darray in xkb_mod_set
authorRan Benita <ran234@gmail.com>
Tue, 22 Apr 2014 09:23:36 +0000 (12:23 +0300)
committerRan Benita <ran234@gmail.com>
Tue, 22 Apr 2014 11:56:44 +0000 (14:56 +0300)
commit787faf36654ed75672613c560286caddadce3ec5
treea3d72f5562234c15141faa3331f6ad1550e0df07
parent6b1cdee107caaf8009037763a3cc3cd51132a1dd
keymap: don't use darray in xkb_mod_set

Instead just statically allocate the mods array (of size MAX_MOD_SIZE =
32). The limit is not going anywhere, and static allocations are nicer
(nicer code, no OOM, etc.). It's also small and dense enough.

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