Lines Matching defs:rtrn
370 ExprResult rtrn;
385 if (!ExprResolveModMask(value, &rtrn, LookupVModMask, (XPointer) xkb))
387 *mods_rtrn = rtrn.uval;
414 unsigned rtrn = act->flags;
415 if (CheckLatchLockFlags(action->type, field, value, &rtrn))
417 act->flags = rtrn;
460 ExprResult rtrn;
461 if (!ExprResolveEnum(value, &rtrn, lockWhich))
464 act->flags |= rtrn.uval;
501 ExprResult rtrn;
514 if (!ExprResolveInteger(spec, &rtrn, SimpleLookup, (XPointer) groupNames))
516 if ((rtrn.ival < 1) || (rtrn.ival > XkbNumKbdGroups))
518 ERROR("Illegal group %d (must be in the range 1..%d)\n", rtrn.ival,
525 *grp_rtrn = -rtrn.ival;
527 *grp_rtrn = rtrn.ival;
529 *grp_rtrn = rtrn.ival - 1;
555 unsigned rtrn = act->flags;
556 if (CheckLatchLockFlags(action->type, field, value, &rtrn))
558 act->flags = rtrn;
607 ExprResult rtrn;
622 if (!ExprResolveInteger(value, &rtrn, NULL, NULL))
628 XkbSetPtrActionX(act, rtrn.ival);
634 XkbSetPtrActionY(act, rtrn.ival);
640 if (!ExprResolveBoolean(value, &rtrn, NULL, NULL))
642 if (rtrn.uval)
665 ExprResult rtrn;
674 (value, &rtrn, SimpleLookup, (XPointer) btnNames))
677 if ((rtrn.ival < 0) || (rtrn.ival > 5))
680 ACTION("Illegal button value %d ignored\n", rtrn.ival);
683 act->button = rtrn.ival;
690 if (!ExprResolveEnum(value, &rtrn, lockWhich))
693 act->flags |= rtrn.uval;
701 (value, &rtrn, SimpleLookup, (XPointer) btnNames))
703 if ((rtrn.ival < 0) || (rtrn.ival > 255))
706 ACTION("Illegal count %d ignored\n", rtrn.ival);
709 act->count = rtrn.ival;
726 ExprResult rtrn;
734 if (!ExprResolveEnum(value, &rtrn, ptrDflts))
736 act->affect = rtrn.uval;
756 (btn, &rtrn, SimpleLookup, (XPointer) btnNames))
759 if ((rtrn.ival < 0) || (rtrn.ival > 5))
762 ACTION("Illegal default button value %d ignored\n", rtrn.ival);
765 if (rtrn.ival == 0)
772 XkbSASetPtrDfltValue(act, -rtrn.ival);
774 XkbSASetPtrDfltValue(act, rtrn.ival);
802 ExprResult rtrn;
842 if (!ExprResolveMask(value, &rtrn, SimpleLookup, (XPointer) isoNames))
844 act->affect = (~rtrn.uval) & XkbSA_ISOAffectMask;
846 act->flags |= rtrn.uval & (XkbSA_LockNoLock | XkbSA_LockNoUnlock);
856 ExprResult rtrn;
876 if (!ExprResolveInteger(scrn, &rtrn, NULL, NULL))
878 if ((rtrn.ival < 0) || (rtrn.ival > 255))
881 ACTION("Illegal screen value %d ignored\n", rtrn.ival);
885 XkbSASetScreen(act, -rtrn.ival);
887 XkbSASetScreen(act, rtrn.ival);
894 if (!ExprResolveBoolean(value, &rtrn, NULL, NULL))
896 if (rtrn.uval)
947 ExprResult rtrn;
956 (value, &rtrn, SimpleLookup, (XPointer) ctrlNames))
958 XkbActionSetCtrls(act, rtrn.uval);
964 if (!ExprResolveEnum(value, &rtrn, lockWhich))
967 act->flags |= rtrn.uval;
987 ExprResult rtrn;
996 if (!ExprResolveMask(value, &rtrn, SimpleLookup, (XPointer) evNames))
1000 rtrn.uval & (XkbSA_MessageOnPress | XkbSA_MessageOnRelease);
1005 if (!ExprResolveBoolean(value, &rtrn, NULL, NULL))
1007 if (rtrn.uval)
1015 if (!ExprResolveString(value, &rtrn, NULL, NULL))
1019 int len = strlen(rtrn.str);
1025 strncpy((char *) act->message, rtrn.str, 6);
1032 if (!ExprResolveInteger(array_ndx, &rtrn, NULL, NULL))
1038 ndx = rtrn.uval;
1045 if (!ExprResolveInteger(value, &rtrn, NULL, NULL))
1047 if ((rtrn.ival < 0) || (rtrn.ival > 255))
1050 ACTION("Illegal datum %d ignored\n", rtrn.ival);
1053 act->message[ndx] = rtrn.uval;
1064 ExprResult rtrn;
1078 if (!ExprResolveKeyName(value, &rtrn, NULL, NULL))
1080 tmp = KeyNameToLong(rtrn.keyName.name);
1084 XkbKeyNameText(rtrn.keyName.name,
1127 ExprResult rtrn;
1135 if (!ExprResolveInteger(value, &rtrn, NULL, NULL))
1138 if ((rtrn.ival < 0) || (rtrn.ival > 255))
1141 ACTION("Illegal button value %d ignored\n", rtrn.ival);
1144 act->button = rtrn.ival;
1151 if (!ExprResolveEnum(value, &rtrn, lockWhich))
1154 act->flags |= rtrn.uval;
1162 (value, &rtrn, SimpleLookup, (XPointer) btnNames))
1164 if ((rtrn.ival < 0) || (rtrn.ival > 255))
1167 ACTION("Illegal count %d ignored\n", rtrn.ival);
1170 act->count = rtrn.ival;
1177 if (!ExprResolveInteger(value, &rtrn, NULL, NULL))
1180 if ((rtrn.ival < 0) || (rtrn.ival > 255))
1183 ACTION("Illegal device value %d ignored\n", rtrn.ival);
1186 act->device = rtrn.ival;
1197 ExprResult rtrn;
1210 ExprResult rtrn;
1215 if (!ExprResolveInteger(value, &rtrn, NULL, NULL))
1217 if ((rtrn.ival < 0) || (rtrn.ival > 255))
1220 ACTION("Illegal type %d ignored\n", rtrn.ival);
1223 action->type = rtrn.uval;
1228 if (!ExprResolveString(value, &rtrn, NULL, NULL))
1232 int len = strlen(rtrn.str);
1239 strncpy((char *) action->data, rtrn.str, 7);
1246 if (!ExprResolveInteger(array_ndx, &rtrn, NULL, NULL))
1252 ndx = rtrn.uval;
1259 if (!ExprResolveInteger(value, &rtrn, NULL, NULL))
1261 if ((rtrn.ival < 0) || (rtrn.ival > 255))
1264 ACTION("Illegal datum %d ignored\n", rtrn.ival);
1267 action->data[ndx] = rtrn.uval;