Lines Matching defs:map_count
229 if ((from->map) && (into->map_count > 0)) {
230 into->map = calloc(into->map_count, sizeof(XkbKTMapEntryRec));
234 into->map_count * sizeof(XkbKTMapEntryRec));
236 if ((from->preserve) && (into->map_count > 0)) {
237 into->preserve = calloc(into->map_count, sizeof(XkbModsRec));
241 into->map_count * sizeof(XkbModsRec));
270 int map_count, Bool want_preserve, int new_num_lvls)
275 if ((type_ndx < 0) || (type_ndx >= xkb->map->num_types) || (map_count < 0)
291 if (map_count == 0) {
296 type->map_count = 0;
301 if ((map_count > type->map_count) || (type->map == NULL))
303 reallocarray(type->map, map_count, sizeof(XkbKTMapEntryRec));
311 if ((map_count > type->map_count) || (type->preserve == NULL)) {
313 map_count, sizeof(XkbModsRec));
324 type->map_count = map_count;
804 type->map_count = 0;