• Home
  • Raw
  • Download

Lines Matching refs:FAIL_UNLESS

63 #define FAIL_UNLESS(expr) do {                                          \  macro
327 FAIL_UNLESS(reply->firstType == 0); in get_types()
336 FAIL_UNLESS(wire_type->numLevels > 0); in get_types()
355 FAIL_UNLESS(wire_entry->level < type->num_levels); in get_types()
371 FAIL_UNLESS((unsigned) preserves_length <= type->num_entries); in get_types()
402 FAIL_UNLESS(reply->minKeyCode <= reply->maxKeyCode); in get_sym_maps()
403 FAIL_UNLESS(reply->firstKeySym >= reply->minKeyCode); in get_sym_maps()
404 FAIL_UNLESS(reply->firstKeySym + reply->nKeySyms <= reply->maxKeyCode + 1); in get_sym_maps()
419 FAIL_UNLESS(key->num_groups <= ARRAY_SIZE(wire_sym_map->kt_index)); in get_sym_maps()
423 FAIL_UNLESS(wire_sym_map->kt_index[j] < keymap->num_types); in get_sym_maps()
431 FAIL_UNLESS(key->out_of_range_group_number <= key->num_groups); in get_sym_maps()
444 FAIL_UNLESS((unsigned) syms_length == wire_sym_map->width * key->num_groups); in get_sym_maps()
482 FAIL_UNLESS(reply->firstKeyAction == keymap->min_key_code); in get_actions()
483 FAIL_UNLESS(reply->firstKeyAction + reply->nKeyActions == in get_actions()
492 FAIL_UNLESS(wire_count == 0 || wire_count == syms_length); in get_actions()
555 FAIL_UNLESS(wire->keycode >= keymap->min_key_code && in get_explicits()
600 FAIL_UNLESS(wire->keycode >= keymap->min_key_code && in get_modmaps()
627 FAIL_UNLESS(wire->keycode >= keymap->min_key_code && in get_vmodmaps()
775 FAIL_UNLESS(reply->firstSIRtrn == 0); in get_sym_interprets()
776 FAIL_UNLESS(reply->nSIRtrn == reply->nTotalSI); in get_sym_interprets()
865 FAIL_UNLESS(reply->nTypes == keymap->num_types); in get_type_names()
866 FAIL_UNLESS(key_type_names_length == n_levels_per_type_length); in get_type_names()
874 FAIL_UNLESS(type->num_levels == wire_num_levels); in get_type_names()
904 FAIL_UNLESS(msb_pos(reply->indicators) <= keymap->num_leds); in get_indicator_names()
984 FAIL_UNLESS(reply->minKeyCode == keymap->min_key_code); in get_key_names()
985 FAIL_UNLESS(reply->maxKeyCode == keymap->max_key_code); in get_key_names()
986 FAIL_UNLESS(reply->firstKey == keymap->min_key_code); in get_key_names()
987 FAIL_UNLESS(reply->firstKey + reply->nKeys - 1U == keymap->max_key_code); in get_key_names()
1077 FAIL_UNLESS((reply->which & required) == required); in get_names()
1125 FAIL_UNLESS(reply->numGroups > 0 && reply->numGroups <= 4); in get_controls()
1130 FAIL_UNLESS(keymap->max_key_code < XCB_XKB_CONST_PER_KEY_BIT_ARRAY_SIZE * 8); in get_controls()