Lines Matching refs:leveli
106 ClearLevelInfo(struct xkb_level *leveli) in ClearLevelInfo() argument
108 if (leveli->num_syms > 1) in ClearLevelInfo()
109 free(leveli->u.syms); in ClearLevelInfo()
121 struct xkb_level *leveli; in ClearGroupInfo() local
122 darray_foreach(leveli, groupi->levels) in ClearGroupInfo()
123 ClearLevelInfo(leveli); in ClearGroupInfo()
697 struct xkb_level *leveli = &darray_item(groupi->levels, i); in AddSymbolsToKey() local
700 leveli->num_syms = darray_item(value->keysym_list.symsNumEntries, i); in AddSymbolsToKey()
701 if (leveli->num_syms > 1) in AddSymbolsToKey()
702 leveli->u.syms = calloc(leveli->num_syms, sizeof(*leveli->u.syms)); in AddSymbolsToKey()
704 for (unsigned j = 0; j < leveli->num_syms; j++) { in AddSymbolsToKey()
708 if (leveli->num_syms == 1) { in AddSymbolsToKey()
710 leveli->num_syms = 0; in AddSymbolsToKey()
712 leveli->u.sym = keysym; in AddSymbolsToKey()
714 else if (leveli->num_syms > 1) { in AddSymbolsToKey()
715 leveli->u.syms[j] = keysym; in AddSymbolsToKey()
1452 struct xkb_level *leveli; in CopySymbolsDefToKeymap() local
1461 darray_foreach_from(leveli, groupi->levels, type->num_levels) in CopySymbolsDefToKeymap()
1462 ClearLevelInfo(leveli); in CopySymbolsDefToKeymap()