- darray_resize0(keymap->key_sym_map, keymap->max_key_code + 1);
- keymap->modmap = calloc(keymap->max_key_code + 1,
- sizeof(*keymap->modmap));
- if (!keymap->modmap)
- goto err_info;
-
- i = keymap->max_key_code + 1;
- keymap->explicit = calloc(keymap->max_key_code + 1,
- sizeof(*keymap->explicit));
- if (!keymap->explicit)
- goto err_info;
-
- darray_resize0(keymap->acts, darray_size(keymap->acts) + 32 + 1);
- darray_resize0(keymap->key_acts, keymap->max_key_code + 1);
-
- keymap->behaviors = calloc(keymap->max_key_code + 1,
- sizeof(*keymap->behaviors));
- if (!keymap->behaviors)
- goto err_info;
-
- keymap->vmodmap = calloc(keymap->max_key_code + 1,
- sizeof(*keymap->vmodmap));
- if (!keymap->vmodmap)
- goto err_info;
-
- keymap->per_key_repeat = calloc(keymap->max_key_code / 8, 1);
- if (!keymap->per_key_repeat)