s/XkbAlloc/XkbcAlloc/ so we don't know XKBlib.
bzero((char *) &sizes, sizeof(XkbGeometrySizesRec));
sizes.which = XkbGeomKeyAliasesMask;
sizes.num_key_aliases = nOld + nNew;
bzero((char *) &sizes, sizeof(XkbGeometrySizesRec));
sizes.which = XkbGeomKeyAliasesMask;
sizes.num_key_aliases = nOld + nNew;
- status = XkbAllocGeometry(xkb, &sizes);
+ status = XkbcAllocGeometry(xkb, &sizes);
- status = XkbAllocGeomKeyAliases(xkb->geom, nOld + nNew);
+ status = XkbcAllocGeomKeyAliases(xkb->geom, nOld + nNew);
}
if (xkb->geom)
old = xkb->geom->key_aliases;
}
else
{
}
if (xkb->geom)
old = xkb->geom->key_aliases;
}
else
{
- status = XkbAllocNames(xkb, XkbKeyAliasesMask, 0, nOld + nNew);
+ status = XkbcAllocNames(xkb, XkbKeyAliasesMask, 0, nOld + nNew);
if (xkb->names)
old = xkb->names->key_aliases;
}
if (xkb->names)
old = xkb->names->key_aliases;
}
if (info.errorCount == 0)
{
int size;
if (info.errorCount == 0)
{
int size;
- if (XkbAllocCompatMap(xkb, XkbAllCompatMask, info.nInterps) !=
+ if (XkbcAllocCompatMap(xkb, XkbAllCompatMask, info.nInterps) !=
Success)
{
WSGO("Couldn't allocate compatibility map\n");
Success)
{
WSGO("Couldn't allocate compatibility map\n");
}
if (info.name != NULL)
{
}
if (info.name != NULL)
{
- if (XkbAllocNames(xkb, XkbCompatNameMask, 0, 0) == Success)
+ if (XkbcAllocNames(xkb, XkbCompatNameMask, 0, 0) == Success)
xkb->names->compat =
XkbcInternAtom(info.name, False);
else
xkb->names->compat =
XkbcInternAtom(info.name, False);
else
sizes.num_shapes = info.nShapes;
sizes.num_sections = info.nSections;
sizes.num_doodads = info.nDoodads;
sizes.num_shapes = info.nShapes;
sizes.num_sections = info.nSections;
sizes.num_doodads = info.nDoodads;
- if (XkbAllocGeometry(xkb, &sizes) != Success)
+ if (XkbcAllocGeometry(xkb, &sizes) != Success)
{
WSGO("Couldn't allocate GeometryRec\n");
ACTION("Geometry not compiled\n");
{
WSGO("Couldn't allocate GeometryRec\n");
ACTION("Geometry not compiled\n");
if (info.name != NULL)
{
geom->name = XkbcInternAtom(info.name, False);
if (info.name != NULL)
{
geom->name = XkbcInternAtom(info.name, False);
- if (XkbAllocNames(xkb, XkbGeometryNameMask, 0, 0) == Success)
+ if (XkbcAllocNames(xkb, XkbGeometryNameMask, 0, 0) == Success)
xkb->names->geometry = geom->name;
}
if (info.fontSpec != None)
xkb->names->geometry = geom->name;
}
if (info.fontSpec != None)
LEDInfo *led, *next;
LEDInfo *unbound, *last;
LEDInfo *led, *next;
LEDInfo *unbound, *last;
- if (XkbAllocNames(xkb, XkbIndicatorNamesMask, 0, 0) != Success)
+ if (XkbcAllocNames(xkb, XkbIndicatorNamesMask, 0, 0) != Success)
{
WSGO("Couldn't allocate names\n");
ACTION("Indicator names may be incorrect\n");
}
{
WSGO("Couldn't allocate names\n");
ACTION("Indicator names may be incorrect\n");
}
- if (XkbAllocIndicatorMaps(xkb) != Success)
+ if (XkbcAllocIndicatorMaps(xkb) != Success)
{
WSGO("Can't allocate indicator maps\n");
ACTION("Indicator map definitions may be lost\n");
{
WSGO("Can't allocate indicator maps\n");
ACTION("Indicator map definitions may be lost\n");
xkb->max_key_code = info.effectiveMax;
else
xkb->max_key_code = info.computedMax;
xkb->max_key_code = info.effectiveMax;
else
xkb->max_key_code = info.computedMax;
- if (XkbAllocNames(xkb, XkbKeyNamesMask | XkbIndicatorNamesMask, 0, 0)
+ if (XkbcAllocNames(xkb, XkbKeyNamesMask | XkbIndicatorNamesMask, 0, 0)
== Success)
{
register int i;
== Success)
{
register int i;
if (info.leds)
{
IndicatorNameInfo *ii;
if (info.leds)
{
IndicatorNameInfo *ii;
- if (XkbAllocIndicatorMaps(xkb) != Success)
+ if (XkbcAllocIndicatorMaps(xkb) != Success)
{
WSGO("Couldn't allocate IndicatorRec in CompileKeycodes\n");
ACTION("Physical indicators not set\n");
{
WSGO("Couldn't allocate IndicatorRec in CompileKeycodes\n");
ACTION("Physical indicators not set\n");
- if (XkbAllocNames(xkb, XkbTypesNameMask, 0, 0) == Success)
+ if (XkbcAllocNames(xkb, XkbTypesNameMask, 0, 0) == Success)
xkb->names->types = XkbcInternAtom(info.name, False);
else
{
xkb->names->types = XkbcInternAtom(info.name, False);
else
{
i++;
if ((info.stdPresent & XkbAlphabeticMask) == 0)
i++;
i++;
if ((info.stdPresent & XkbAlphabeticMask) == 0)
i++;
- if (XkbAllocClientMap(xkb, XkbKeyTypesMask, i) != Success)
+ if (XkbcAllocClientMap(xkb, XkbKeyTypesMask, i) != Success)
{
WSGO("Couldn't allocate client map\n");
ACTION("Exiting\n");
{
WSGO("Couldn't allocate client map\n");
ACTION("Exiting\n");
if ((xkb->names == NULL) || (xkb->names->keys == NULL))
{
if ((xkb->names == NULL) || (xkb->names->keys == NULL))
{
- if ((rtrn = XkbAllocNames(xkb, XkbKeyNamesMask, 0, 0)) != Success)
+ if ((rtrn = XkbcAllocNames(xkb, XkbKeyNamesMask, 0, 0)) != Success)
return rtrn;
}
for (name = dfltKeys; (name->name[0] != '\0'); name++)
return rtrn;
}
for (name = dfltKeys; (name->name[0] != '\0'); name++)
xkb->min_key_code = XkbMinLegalKeyCode;
xkb->max_key_code = XkbMaxLegalKeyCode;
}
xkb->min_key_code = XkbMinLegalKeyCode;
xkb->max_key_code = XkbMaxLegalKeyCode;
}
- if (XkbAllocNames(xkb, XkbKeyNamesMask, 0, 0) != Success)
+ if (XkbcAllocNames(xkb, XkbKeyNamesMask, 0, 0) != Success)
{
if (warningLevel > 0)
{
{
if (warningLevel > 0)
{
KeyInfo *key;
/* alloc memory in the xkb struct */
KeyInfo *key;
/* alloc memory in the xkb struct */
- if (XkbAllocNames(xkb, XkbSymbolsNameMask | XkbGroupNamesMask, 0, 0)
+ if (XkbcAllocNames(xkb, XkbSymbolsNameMask | XkbGroupNamesMask, 0, 0)
!= Success)
{
WSGO("Can not allocate names in CompileSymbols\n");
ACTION("Symbols not added\n");
return False;
}
!= Success)
{
WSGO("Can not allocate names in CompileSymbols\n");
ACTION("Symbols not added\n");
return False;
}
- if (XkbAllocClientMap(xkb, XkbKeySymsMask | XkbModifierMapMask, 0)
+ if (XkbcAllocClientMap(xkb, XkbKeySymsMask | XkbModifierMapMask, 0)
!= Success)
{
WSGO("Could not allocate client map in CompileSymbols\n");
ACTION("Symbols not added\n");
return False;
}
!= Success)
{
WSGO("Could not allocate client map in CompileSymbols\n");
ACTION("Symbols not added\n");
return False;
}
- if (XkbAllocServerMap(xkb, XkbAllServerInfoMask, 32) != Success)
+ if (XkbcAllocServerMap(xkb, XkbAllServerInfoMask, 32) != Success)
{
WSGO("Could not allocate server map in CompileSymbols\n");
ACTION("Symbols not added\n");
return False;
}
{
WSGO("Could not allocate server map in CompileSymbols\n");
ACTION("Symbols not added\n");
return False;
}
- if (XkbAllocControls(xkb, XkbPerKeyRepeatMask) != Success)
+ if (XkbcAllocControls(xkb, XkbPerKeyRepeatMask) != Success)
{
WSGO("Could not allocate controls in CompileSymbols\n");
ACTION("Symbols not added\n");
{
WSGO("Could not allocate controls in CompileSymbols\n");
ACTION("Symbols not added\n");
- if (XkbAllocNames(xkb, XkbVirtualModNamesMask, 0, 0) != Success)
+ if (XkbcAllocNames(xkb, XkbVirtualModNamesMask, 0, 0) != Success)
- if (XkbAllocServerMap(xkb, XkbVirtualModsMask, 0) != Success)
+ if (XkbcAllocServerMap(xkb, XkbVirtualModsMask, 0) != Success)
return;
info->xkb = xkb;
info->newlyDefined = info->defined = info->available = 0;
return;
info->xkb = xkb;
info->newlyDefined = info->defined = info->available = 0;