Lines Matching defs:into
220 XkbCopyKeyType(XkbKeyTypePtr from,XkbKeyTypePtr into)
222 if ((!from)||(!into))
224 free(into->map);
225 into->map = NULL;
226 free(into->preserve);
227 into->preserve = NULL;
228 free(into->level_names);
229 into->level_names = NULL;
230 *into= *from;
231 if ((from->map)&&(into->map_count>0)) {
232 into->map= calloc(into->map_count, sizeof(XkbKTMapEntryRec));
233 if (!into->map)
235 memcpy(into->map,from->map,into->map_count*sizeof(XkbKTMapEntryRec));
237 if ((from->preserve)&&(into->map_count>0)) {
238 into->preserve= calloc(into->map_count, sizeof(XkbModsRec));
239 if (!into->preserve)
241 memcpy(into->preserve,from->preserve,
242 into->map_count*sizeof(XkbModsRec));
244 if ((from->level_names)&&(into->num_levels>0)) {
245 into->level_names= calloc(into->num_levels, sizeof(Atom));
246 if (!into->level_names)
248 memcpy(into->level_names,from->level_names,
249 into->num_levels*sizeof(Atom));
255 XkbCopyKeyTypes(XkbKeyTypePtr from,XkbKeyTypePtr into,int num_types)
259 if ((!from)||(!into)||(num_types<0))
262 if ((rtrn= XkbCopyKeyType(from++,into++))!=Success)