Lines Matching defs:def

246     KeycodeDef *def = malloc(sizeof(*def));
247 if (!def)
250 def->common.type = STMT_KEYCODE;
251 def->common.next = NULL;
252 def->name = name;
253 def->value = value;
255 return def;
261 KeyAliasDef *def = malloc(sizeof(*def));
262 if (!def)
265 def->common.type = STMT_ALIAS;
266 def->common.next = NULL;
267 def->alias = alias;
268 def->real = real;
270 return def;
276 VModDef *def = malloc(sizeof(*def));
277 if (!def)
280 def->common.type = STMT_VMOD;
281 def->common.next = NULL;
282 def->name = name;
283 def->value = value;
285 return def;
291 VarDef *def = malloc(sizeof(*def));
292 if (!def)
295 def->common.type = STMT_VAR;
296 def->common.next = NULL;
297 def->name = name;
298 def->value = value;
300 return def;
307 VarDef *def;
315 if (!(def = VarCreate(name, value))) {
320 return def;
326 InterpDef *def = malloc(sizeof(*def));
327 if (!def)
330 def->common.type = STMT_INTERP;
331 def->common.next = NULL;
332 def->sym = sym;
333 def->match = match;
334 def->def = NULL;
336 return def;
342 KeyTypeDef *def = malloc(sizeof(*def));
343 if (!def)
346 def->common.type = STMT_TYPE;
347 def->common.next = NULL;
348 def->merge = MERGE_DEFAULT;
349 def->name = name;
350 def->body = body;
352 return def;
358 SymbolsDef *def = malloc(sizeof(*def));
359 if (!def)
362 def->common.type = STMT_SYMBOLS;
363 def->common.next = NULL;
364 def->merge = MERGE_DEFAULT;
365 def->keyName = keyName;
366 def->symbols = symbols;
368 return def;
374 GroupCompatDef *def = malloc(sizeof(*def));
375 if (!def)
378 def->common.type = STMT_GROUP_COMPAT;
379 def->common.next = NULL;
380 def->merge = MERGE_DEFAULT;
381 def->group = group;
382 def->def = val;
384 return def;
390 ModMapDef *def = malloc(sizeof(*def));
391 if (!def)
394 def->common.type = STMT_MODMAP;
395 def->common.next = NULL;
396 def->merge = MERGE_DEFAULT;
397 def->modifier = modifier;
398 def->keys = keys;
400 return def;
406 LedMapDef *def = malloc(sizeof(*def));
407 if (!def)
410 def->common.type = STMT_LED_MAP;
411 def->common.next = NULL;
412 def->merge = MERGE_DEFAULT;
413 def->name = name;
414 def->body = body;
416 return def;
422 LedNameDef *def = malloc(sizeof(*def));
423 if (!def)
426 def->common.type = STMT_LED_NAME;
427 def->common.next = NULL;
428 def->merge = MERGE_DEFAULT;
429 def->ndx = ndx;
430 def->name = name;
431 def->virtual = virtual;
433 return def;
658 FreeStmt((ParseCommon *) ((InterpDef *) stmt)->def);
670 FreeStmt((ParseCommon *) ((GroupCompatDef *) stmt)->def);