};
char *
+XkbcModIndexText(unsigned ndx)
+{
+ char *buf;
+
+ if (ndx < XkbNumModifiers)
+ return modNames[ndx];
+ else if (ndx == XkbNoModifier)
+ return "none";
+
+ buf = tbGetBuffer(32);
+ snprintf(buf, 32, "ILLEGAL_%02x", ndx);
+
+ return buf;
+}
+
+char *
XkbcModMaskText(unsigned mask, Bool cFormat)
{
int i, rem, bit;
("%s added to symbol map for multiple modifiers\n",
XkbcKeysymText(new->u.keySym));
ACTION2("Using %s, ignoring %s.\n",
- XkbModIndexText(use, XkbMessage),
- XkbModIndexText(ignore, XkbMessage));
+ XkbcModIndexText(use),
+ XkbcModIndexText(ignore));
mm->modifier = use;
}
return True;
ERROR1("Key %s added to map for multiple modifiers\n",
longText(new->u.keyName));
ACTION2("Using %s, ignoring %s.\n",
- XkbModIndexText(use, XkbMessage),
- XkbModIndexText(ignore, XkbMessage));
+ XkbcModIndexText(use),
+ XkbcModIndexText(ignore));
mm->modifier = use;
}
return True;
{
WSGO("Could not allocate modifier map entry\n");
ACTION1("Modifier map for %s will be incomplete\n",
- XkbModIndexText(new->modifier, XkbMessage));
+ XkbcModIndexText(new->modifier));
return False;
}
*mm = *new;
{
ERROR("Modmap entries may contain only key names or keysyms\n");
ACTION1("Illegal definition for %s modifier ignored\n",
- XkbModIndexText(tmp.modifier, XkbMessage));
+ XkbcModIndexText(tmp.modifier));
continue;
}
longText(entry->u.keyName),
XkbcAtomText(xkb->names->keycodes));
ACTION1("Modifier map entry for %s not updated\n",
- XkbModIndexText(entry->modifier, XkbMessage));
+ XkbcModIndexText(entry->modifier));
}
return False;
}
XkbcKeysymText(entry->u.keySym),
XkbcAtomText(xkb->names->symbols));
ACTION1("Modifier map entry for %s not updated\n",
- XkbModIndexText(entry->modifier, XkbMessage));
+ XkbcModIndexText(entry->modifier));
}
return False;
}