Lines Matching defs:into
218 XkbCopyKeyType(XkbKeyTypePtr from, XkbKeyTypePtr into)
220 if ((!from) || (!into))
222 free(into->map);
223 into->map = NULL;
224 free(into->preserve);
225 into->preserve = NULL;
226 free(into->level_names);
227 into->level_names = NULL;
228 *into = *from;
229 if ((from->map) && (into->map_count > 0)) {
230 into->map = calloc(into->map_count, sizeof(XkbKTMapEntryRec));
231 if (!into->map)
233 memcpy(into->map, from->map,
234 into->map_count * sizeof(XkbKTMapEntryRec));
236 if ((from->preserve) && (into->map_count > 0)) {
237 into->preserve = calloc(into->map_count, sizeof(XkbModsRec));
238 if (!into->preserve)
240 memcpy(into->preserve, from->preserve,
241 into->map_count * sizeof(XkbModsRec));
243 if ((from->level_names) && (into->num_levels > 0)) {
244 into->level_names = calloc(into->num_levels, sizeof(Atom));
245 if (!into->level_names)
247 memcpy(into->level_names, from->level_names,
248 into->num_levels * sizeof(Atom));
254 XkbCopyKeyTypes(XkbKeyTypePtr from, XkbKeyTypePtr into, int num_types)
258 if ((!from) || (!into) || (num_types < 0))
261 if ((rtrn = XkbCopyKeyType(from++, into++)) != Success)