if (value->op == ExprIdent)
{
register char *valStr;
- valStr = XkbAtomGetString(NULL, value->value.str);
+ valStr = XkbcAtomGetString(NULL, value->value.str);
if (valStr && ((uStrCaseCmp(valStr, "usemodmapmods") == 0) ||
(uStrCaseCmp(valStr, "modmapmods") == 0)))
{
exprOpText(def->op));
return False;
}
- str = XkbAtomGetString(NULL, def->value.action.name);
+ str = XkbcAtomGetString(NULL, def->value.action.name);
if (!str)
{
WSGO("Missing name in action definition!!\n");
constTrue.common.next = NULL;
constTrue.op = ExprIdent;
constTrue.type = TypeBoolean;
- constTrue.value.str = XkbInternAtom(NULL, "true", False);
+ constTrue.value.str = XkbcInternAtom(NULL, "true", False);
constFalse.common.stmtType = StmtExpr;
constFalse.common.next = NULL;
constFalse.op = ExprIdent;
constFalse.type = TypeBoolean;
- constFalse.value.str = XkbInternAtom(NULL, "false", False);
+ constFalse.value.str = XkbcInternAtom(NULL, "false", False);
actionsInitialized = 1;
}
return;
{
if (XkbAllocNames(xkb, XkbCompatNameMask, 0, 0) == Success)
xkb->names->compat =
- XkbInternAtom(xkb->dpy, info.name, False);
+ XkbcInternAtom(xkb->dpy, info.name, False);
else
{
WSGO("Couldn't allocate space for compat name\n");
{
case ExprIdent:
elem_rtrn->str = NULL;
- field_rtrn->str = XkbAtomGetString(NULL, expr->value.str);
+ field_rtrn->str = XkbcAtomGetString(NULL, expr->value.str);
*index_rtrn = NULL;
return True;
case ExprFieldRef:
- elem_rtrn->str = XkbAtomGetString(NULL, expr->value.field.element);
- field_rtrn->str = XkbAtomGetString(NULL, expr->value.field.field);
+ elem_rtrn->str = XkbcAtomGetString(NULL, expr->value.field.element);
+ field_rtrn->str = XkbcAtomGetString(NULL, expr->value.field.field);
*index_rtrn = NULL;
return True;
case ExprArrayRef:
- elem_rtrn->str = XkbAtomGetString(NULL, expr->value.array.element);
- field_rtrn->str = XkbAtomGetString(NULL, expr->value.array.field);
+ elem_rtrn->str = XkbcAtomGetString(NULL, expr->value.array.element);
+ field_rtrn->str = XkbcAtomGetString(NULL, expr->value.array.field);
*index_rtrn = expr->value.array.entry;
return True;
}
{
return False;
}
- str = XkbAtomGetString(NULL, field);
+ str = XkbcAtomGetString(NULL, field);
for (entry = (LookupEntry *) priv;
(entry != NULL) && (entry->name != NULL); entry++)
{
if ((field == None) || (elem != None) || (type != TypeInt))
return False;
- str = XkbAtomGetString(NULL, field);
+ str = XkbcAtomGetString(NULL, field);
if (str)
{
if (uStrCasePrefix("group", str))
if ((priv == NULL) || (field == None) || (type != TypeInt))
return False;
- str = XkbAtomGetString(NULL, elem);
+ str = XkbcAtomGetString(NULL, elem);
while (tbl)
{
if (((str == NULL) && (tbl->element == NULL)) ||
if ((elem != None) || (type != TypeInt))
return False;
- str = XkbAtomGetString(NULL, field);
+ str = XkbcAtomGetString(NULL, field);
if (str == NULL)
return False;
if (uStrCaseCmp(str, "all") == 0)
val_rtrn->ival = expr->value.ival;
return True;
case ExprIdent:
- bogus = XkbAtomGetString(NULL, expr->value.str);
+ bogus = XkbcAtomGetString(NULL, expr->value.str);
if (bogus)
{
if ((uStrCaseCmp(bogus, "true") == 0) ||
if (expr->type == TypeString)
{
register char *str;
- str = XkbAtomGetString(NULL, expr->value.str);
+ str = XkbcAtomGetString(NULL, expr->value.str);
if ((str != NULL) && (strlen(str) == 1))
{
val_rtrn->uval = str[0] * XkbGeomPtsPerMM;
if (expr->type == TypeString)
{
register char *str;
- str = XkbAtomGetString(NULL, expr->value.str);
+ str = XkbcAtomGetString(NULL, expr->value.str);
if (str != NULL)
switch (strlen(str))
{
exprTypeText(expr->type));
return False;
}
- val_rtrn->str = XkbAtomGetString(NULL, expr->value.str);
+ val_rtrn->str = XkbcAtomGetString(NULL, expr->value.str);
if (val_rtrn->str == NULL)
{
static char *empty = "";
if (expr->op == ExprIdent)
{
char *str;
- str = XkbAtomGetString(NULL, expr->value.str);
+ str = XkbcAtomGetString(NULL, expr->value.str);
if ((str != NULL) && ((sym = XStringToKeysym(str)) != NoSymbol))
{
val_rtrn->uval = sym;
{
*si = info->dfltSection;
si->defs.defined &= ~_GS_Default;
- si->name = XkbInternAtom(info->dpy, "unknown", False);
+ si->name = XkbcInternAtom(info->dpy, "unknown", False);
si->priority = info->nextPriority++;
if (info->nextPriority > XkbGeomMaxPriority)
info->nextPriority = XkbGeomMaxPriority;
si->defs.merge = info->merge;
si->defs.next = NULL;
si->geometry = info;
- si->name = XkbInternAtom(info->dpy, "default", False);
+ si->name = XkbcInternAtom(info->dpy, "default", False);
InitRowInfo(&si->dfltRow, si, info);
}
return;
{
si->defs.defined &= ~_GS_Default;
- si->name = XkbInternAtom(info->dpy, "default", False);
+ si->name = XkbcInternAtom(info->dpy, "default", False);
si->top = si->left = 0;
si->width = si->height = 0;
si->angle = 0;
return ReportBadType(typeName, field, ddText(info->dpy, di),
"string");
}
- di->shape = XkbInternAtom(info->dpy, tmp.str, False);
+ di->shape = XkbcInternAtom(info->dpy, tmp.str, False);
di->defs.defined |= _GD_Shape;
return True;
}
"string");
}
di->defs.defined |= def;
- *pField.str = XkbInternAtom(NULL, tmp.str, False);
+ *pField.str = XkbcInternAtom(NULL, tmp.str, False);
}
else
{
if (uStrCaseCmp(field, "oncolor") == 0)
{
di->defs.defined |= _GD_Color;
- di->color = XkbInternAtom(NULL, tmp.str, False);
+ di->color = XkbcInternAtom(NULL, tmp.str, False);
}
else if (uStrCaseCmp(field, "offcolor") == 0)
{
di->defs.defined |= _GD_OffColor;
- di->offColor = XkbInternAtom(NULL, tmp.str, False);
+ di->offColor = XkbcInternAtom(NULL, tmp.str, False);
}
else if (uStrCaseCmp(field, "shape") == 0)
{
di->defs.defined |= _GD_Shape;
- di->shape = XkbInternAtom(info->dpy, tmp.str, False);
+ di->shape = XkbcInternAtom(info->dpy, tmp.str, False);
}
return True;
}
return ReportBadType(typeName, field, ddText(info->dpy, di),
"string");
}
- di->shape = XkbInternAtom(info->dpy, tmp.str, False);
+ di->shape = XkbcInternAtom(info->dpy, tmp.str, False);
di->defs.defined |= _GD_Shape;
return True;
}
"string");
}
di->defs.defined |= _GD_Color;
- di->color = XkbInternAtom(NULL, tmp.str, False);
+ di->color = XkbcInternAtom(NULL, tmp.str, False);
return True;
}
switch (di->type)
return ReportBadType("key", field, keyText(key), "string");
}
key->defs.defined |= _GK_Shape;
- key->shape = XkbInternAtom(info->dpy, tmp.str, False);
+ key->shape = XkbcInternAtom(info->dpy, tmp.str, False);
}
else if ((uStrCaseCmp(field, "color") == 0) ||
(uStrCaseCmp(field, "keycolor") == 0))
return ReportBadType("key", field, keyText(key), "string");
}
key->defs.defined |= _GK_Color;
- key->color = XkbInternAtom(NULL, tmp.str, False);
+ key->color = XkbcInternAtom(NULL, tmp.str, False);
}
else if ((uStrCaseCmp(field, "name") == 0)
|| (uStrCaseCmp(field, "keyname") == 0))
info->errorCount++;
return ReportBadType("keyboard", field.str, "geometry", "string");
}
- info->baseColor = XkbInternAtom(NULL, tmp.str, False);
+ info->baseColor = XkbcInternAtom(NULL, tmp.str, False);
return True;
}
else if (uStrCaseCmp(field.str, "labelcolor") == 0)
info->errorCount++;
return ReportBadType("keyboard", field.str, "geometry", "string");
}
- info->labelColor = XkbInternAtom(NULL, tmp.str, False);
+ info->labelColor = XkbcInternAtom(NULL, tmp.str, False);
return True;
}
else
info->errorCount++;
return ReportBadType("keyboard", field.str, "geometry", "string");
}
- *pField = XkbInternAtom(NULL, tmp.str, False);
+ *pField = XkbcInternAtom(NULL, tmp.str, False);
return True;
}
{
if (ol->nPoints < 1)
{
- SetShapeField(si, XkbAtomGetString(NULL, ol->field), NULL,
+ SetShapeField(si, XkbcAtomGetString(NULL, ol->field), NULL,
ol->points, info);
continue;
}
bzero(&si, sizeof(ShapeInfo));
si.defs.merge = merge;
si.name =
- XkbInternAtom(info->dpy, XkbAtomGetString(NULL, def->name), False);
+ XkbcInternAtom(info->dpy, XkbcAtomGetString(NULL, def->name), False);
si.dfltCornerRadius = info->dfltCornerRadius;
if (!HandleShapeBody(def, &si, merge, info))
return False;
}
InitDoodadInfo(&new, def->type, si, info);
new.name =
- XkbInternAtom(info->dpy, XkbAtomGetString(NULL, def->name), False);
+ XkbcInternAtom(info->dpy, XkbcAtomGetString(NULL, def->name), False);
for (var = def->body; var != NULL; var = (VarDef *) var->common.next)
{
if (ExprResolveLhs(var->name, &elem, &field, &ndx) == 0)
}
bzero(&ol, sizeof(OverlayInfo));
ol.name =
- XkbInternAtom(info->dpy, XkbAtomGetString(NULL, def->name), False);
+ XkbcInternAtom(info->dpy, XkbcAtomGetString(NULL, def->name), False);
for (keyDef = def->keys; keyDef;
keyDef = (OverlayKeyDef *) keyDef->common.next)
{
merge = def->merge;
InitSectionInfo(&si, info);
si.defs.merge = merge;
- str = XkbAtomGetString(NULL, def->name);
+ str = XkbcAtomGetString(NULL, def->name);
if ((str == NULL) || (strlen(str) < 1))
{
ERROR("Section defined without a name\n");
return False;
}
si.name =
- XkbInternAtom(info->dpy, XkbAtomGetString(NULL, def->name), False);
+ XkbcInternAtom(info->dpy, XkbcAtomGetString(NULL, def->name), False);
if (!HandleSectionBody(def, &si, merge, info))
return False;
if (!AddSection(info, &si))
Atom name;
si->index = geom->num_shapes;
- name = XkbInternAtom(dpy, XkbAtomGetString(NULL, si->name), False);
+ name = XkbcInternAtom(dpy, XkbcAtomGetString(NULL, si->name), False);
shape = XkbAddGeomShape(geom, name, si->nOutlines);
if (!shape)
{
WARN1("No color for doodad %s\n", ddText(info->dpy, di));
ACTION("Using black\n");
}
- di->color = XkbInternAtom(NULL, "black", False);
+ di->color = XkbcInternAtom(NULL, "black", False);
}
break;
case XkbTextDoodad:
ddText(info->dpy, di));
ACTION("Using black\n");
}
- di->color = XkbInternAtom(NULL, "black", False);
+ di->color = XkbcInternAtom(NULL, "black", False);
}
if ((di->defs.defined & _GD_FontSpec) != 0)
{
ddText(info->dpy, di));
ACTION1("Using \"%s\"\n", DFLT_FONT);
}
- di->font = XkbInternAtom(NULL, DFLT_FONT, False);
+ di->font = XkbcInternAtom(NULL, DFLT_FONT, False);
}
if ((di->defs.defined & _GD_FontSlant) == 0)
{
ddText(info->dpy, di));
ACTION1("Using \"%s\"\n", DFLT_SLANT);
}
- di->fontSlant = XkbInternAtom(NULL, DFLT_SLANT, False);
+ di->fontSlant = XkbcInternAtom(NULL, DFLT_SLANT, False);
}
if ((di->defs.defined & _GD_FontWeight) == 0)
{
ddText(info->dpy, di));
ACTION1("Using \"%s\"\n", DFLT_WEIGHT);
}
- di->fontWeight = XkbInternAtom(NULL, DFLT_WEIGHT, False);
+ di->fontWeight = XkbcInternAtom(NULL, DFLT_WEIGHT, False);
}
if ((di->defs.defined & _GD_FontSetWidth) == 0)
{
ddText(info->dpy, di));
ACTION1("Using \"%s\"\n", DFLT_SET_WIDTH);
}
- di->fontSetWidth = XkbInternAtom(NULL, DFLT_SET_WIDTH, False);
+ di->fontSetWidth = XkbcInternAtom(NULL, DFLT_SET_WIDTH, False);
}
if ((di->defs.defined & _GD_FontVariant) == 0)
{
ddText(info->dpy, di));
ACTION1("Using \"%s\"\n", DFLT_VARIANT);
}
- di->fontVariant = XkbInternAtom(NULL, DFLT_VARIANT, False);
+ di->fontVariant = XkbcInternAtom(NULL, DFLT_VARIANT, False);
}
if ((di->defs.defined & _GD_FontEncoding) == 0)
{
ddText(info->dpy, di));
ACTION1("Using \"%s\"\n", DFLT_ENCODING);
}
- di->fontEncoding = XkbInternAtom(NULL, DFLT_ENCODING, False);
+ di->fontEncoding = XkbcInternAtom(NULL, DFLT_ENCODING, False);
}
if ((di->defs.defined & _GD_FontSize) == 0)
{
char *tmp;
size = (di->fontSize * 120) / 100;
size = (size * 254) / 720; /* convert to mm/10 */
- for (nLines = 1, tmp = XkbAtomGetString(NULL, di->text); *tmp;
+ for (nLines = 1, tmp = XkbcAtomGetString(NULL, di->text); *tmp;
tmp++)
{
if (*tmp == '\n')
unsigned width, tmp;
char *str;
width = tmp = 0;
- for (str = XkbAtomGetString(NULL, di->text); *str; str++)
+ for (str = XkbcAtomGetString(NULL, di->text); *str; str++)
{
if (*str != '\n')
tmp++;
ddText(info->dpy, di));
ACTION("Using green\n");
}
- di->color = XkbInternAtom(NULL, "green", False);
+ di->color = XkbcInternAtom(NULL, "green", False);
}
if ((di->defs.defined & _GD_OffColor) == 0)
{
ddText(info->dpy, di));
ACTION("Using black\n");
}
- di->offColor = XkbInternAtom(NULL, "black", False);
+ di->offColor = XkbcInternAtom(NULL, "black", False);
}
break;
case XkbLogoDoodad:
WARN1("No color for doodad %s\n", ddText(info->dpy, di));
ACTION("Using black\n");
}
- di->color = XkbInternAtom(NULL, "black", False);
+ di->color = XkbcInternAtom(NULL, "black", False);
}
break;
default:
char *font, *weight, *slant, *setWidth, *variant, *encoding;
char *rtrn;
- font = (fontTok != None ? XkbAtomGetString(NULL, fontTok) : DFLT_FONT);
+ font = (fontTok != None ? XkbcAtomGetString(NULL, fontTok) : DFLT_FONT);
weight =
- (weightTok != None ? XkbAtomGetString(NULL, weightTok) : DFLT_WEIGHT);
+ (weightTok != None ? XkbcAtomGetString(NULL, weightTok) : DFLT_WEIGHT);
slant =
- (slantTok != None ? XkbAtomGetString(NULL, slantTok) : DFLT_SLANT);
+ (slantTok != None ? XkbcAtomGetString(NULL, slantTok) : DFLT_SLANT);
setWidth =
(setWidthTok !=
- None ? XkbAtomGetString(NULL, setWidthTok) : DFLT_SET_WIDTH);
+ None ? XkbcAtomGetString(NULL, setWidthTok) : DFLT_SET_WIDTH);
variant =
- (varTok != None ? XkbAtomGetString(NULL, varTok) : DFLT_VARIANT);
+ (varTok != None ? XkbcAtomGetString(NULL, varTok) : DFLT_VARIANT);
encoding =
(encodingTok !=
- None ? XkbAtomGetString(NULL, encodingTok) : DFLT_ENCODING);
+ None ? XkbcAtomGetString(NULL, encodingTok) : DFLT_ENCODING);
if (size == 0)
size = DFLT_SIZE;
totalSize =
if (!VerifyDoodadInfo(di, info))
return False;
- name = XkbInternAtom(NULL, XkbAtomGetString(NULL, di->name), False);
+ name = XkbcInternAtom(NULL, XkbcAtomGetString(NULL, di->name), False);
doodad = XkbAddGeomDoodad(geom, section, name);
if (!doodad)
{
return False;
doodad->shape.angle = di->angle;
color =
- XkbAddGeomColor(geom, XkbAtomGetString(NULL, di->color),
+ XkbAddGeomColor(geom, XkbcAtomGetString(NULL, di->color),
geom->num_colors);
shape = &geom->shapes[si->index];
XkbSetShapeDoodadColor(geom, &doodad->shape, color);
di->fontVariant, di->fontSize,
di->fontEncoding);
else
- doodad->text.font = XkbAtomGetString(NULL, di->fontSpec);
- doodad->text.text = XkbAtomGetString(NULL, di->text);
+ doodad->text.font = XkbcAtomGetString(NULL, di->fontSpec);
+ doodad->text.text = XkbcAtomGetString(NULL, di->text);
color =
- XkbAddGeomColor(geom, XkbAtomGetString(NULL, di->color),
+ XkbAddGeomColor(geom, XkbcAtomGetString(NULL, di->color),
geom->num_colors);
XkbSetTextDoodadColor(geom, &doodad->text, color);
break;
return False;
shape = &geom->shapes[si->index];
color =
- XkbAddGeomColor(geom, XkbAtomGetString(NULL, di->color),
+ XkbAddGeomColor(geom, XkbcAtomGetString(NULL, di->color),
geom->num_colors);
XkbSetIndicatorDoodadShape(geom, &doodad->indicator, shape);
XkbSetIndicatorDoodadOnColor(geom, &doodad->indicator, color);
color =
- XkbAddGeomColor(geom, XkbAtomGetString(NULL, di->offColor),
+ XkbAddGeomColor(geom, XkbcAtomGetString(NULL, di->offColor),
geom->num_colors);
XkbSetIndicatorDoodadOffColor(geom, &doodad->indicator, color);
break;
return False;
doodad->logo.angle = di->angle;
color =
- XkbAddGeomColor(geom, XkbAtomGetString(NULL, di->color),
+ XkbAddGeomColor(geom, XkbcAtomGetString(NULL, di->color),
geom->num_colors);
shape = &geom->shapes[si->index];
XkbSetLogoDoodadColor(geom, &doodad->logo, color);
if (!VerifyOverlayInfo(geom, section, oi, info, rowMap, rowSize))
return False;
- name = XkbInternAtom(NULL, XkbAtomGetString(NULL, oi->name), False);
+ name = XkbcInternAtom(NULL, XkbcAtomGetString(NULL, oi->name), False);
ol = XkbAddGeomOverlay(section, name, oi->nRows);
if (!ol)
{
RowInfo *ri;
Atom name;
- name = XkbInternAtom(NULL, XkbAtomGetString(NULL, si->name), False);
+ name = XkbcInternAtom(NULL, XkbcAtomGetString(NULL, si->name), False);
section =
XkbAddGeomSection(geom, name, si->nRows, si->nDoodads, si->nOverlays);
if (section == NULL)
if (ki->color != None)
color =
XkbAddGeomColor(geom,
- XkbAtomGetString(NULL, ki->color),
+ XkbcAtomGetString(NULL, ki->color),
geom->num_colors);
else
color = XkbAddGeomColor(geom, "white", geom->num_colors);
geom->height_mm = info.heightMM;
if (info.name != NULL)
{
- geom->name = XkbInternAtom(xkb->dpy, info.name, False);
+ geom->name = XkbcInternAtom(xkb->dpy, info.name, False);
if (XkbAllocNames(xkb, XkbGeometryNameMask, 0, 0) == Success)
xkb->names->geometry = geom->name;
}
if (info.fontSpec != None)
geom->label_font =
- uStringDup(XkbAtomGetString(NULL, info.fontSpec));
+ uStringDup(XkbcAtomGetString(NULL, info.fontSpec));
else
geom->label_font = FontFromParts(info.font, info.fontWeight,
info.fontSlant,
XkbAddGeomColor(geom, "white", geom->num_colors);
if (info.baseColor == None)
- info.baseColor = XkbInternAtom(NULL, "white", False);
+ info.baseColor = XkbcInternAtom(NULL, "white", False);
if (info.labelColor == None)
- info.labelColor = XkbInternAtom(NULL, "black", False);
+ info.labelColor = XkbcInternAtom(NULL, "black", False);
geom->base_color =
- XkbAddGeomColor(geom, XkbAtomGetString(NULL, info.baseColor),
+ XkbAddGeomColor(geom, XkbcAtomGetString(NULL, info.baseColor),
geom->num_colors);
geom->label_color =
- XkbAddGeomColor(geom, XkbAtomGetString(NULL, info.labelColor),
+ XkbAddGeomColor(geom, XkbcAtomGetString(NULL, info.labelColor),
geom->num_colors);
if (info.props)
void
ClearIndicatorMapInfo(Display * dpy, LEDInfo * info)
{
- info->name = XkbInternAtom(dpy, "default", False);
+ info->name = XkbcInternAtom(dpy, "default", False);
info->indicator = _LED_NotBound;
info->flags = info->which_mods = info->real_mods = 0;
info->vmods = 0;
ERROR("No unnamed indicators found\n");
ACTION1
("Virtual indicator map \"%s\" not bound\n",
- XkbAtomGetString(xkb->dpy, led->name));
+ XkbcAtomGetString(xkb->dpy, led->name));
continue;
}
}
ERROR1("Multiple names bound to indicator %d\n",
(unsigned int) led->indicator);
ACTION2("Using %s, ignoring %s\n",
- XkbAtomGetString(xkb->dpy, old),
- XkbAtomGetString(xkb->dpy, led->name));
+ XkbcAtomGetString(xkb->dpy, old),
+ XkbcAtomGetString(xkb->dpy, led->name));
led->indicator = _LED_NotBound;
if (force)
{
info->errorCount++;
return ReportBadType("indicator", "name", buf, "string");
}
- ii.name = XkbInternAtom(NULL, tmp.str, False);
+ ii.name = XkbcInternAtom(NULL, tmp.str, False);
ii.virtual = def->virtual;
if (!AddIndicatorName(info, &ii))
return False;
== Success)
{
register int i;
- xkb->names->keycodes = XkbInternAtom(xkb->dpy, info.name, False);
+ xkb->names->keycodes = XkbcInternAtom(xkb->dpy, info.name, False);
uDEBUG2(1, "key range: %d..%d\n", xkb->min_key_code,
xkb->max_key_code);
for (i = info.computedMin; i <= info.computedMax; i++)
ii = (IndicatorNameInfo *) ii->defs.next)
{
xkb->names->indicators[ii->ndx - 1] =
- XkbInternAtom(xkb->dpy,
- XkbAtomGetString(NULL, ii->name), False);
+ XkbcInternAtom(xkb->dpy,
+ XkbcAtomGetString(NULL, ii->name), False);
if (xkb->indicators != NULL)
{
register unsigned bit;
static void
InitKeyTypesInfo(KeyTypesInfo * info, XkbcDescPtr xkb, KeyTypesInfo * from)
{
- tok_ONE_LEVEL = XkbInternAtom(NULL, "ONE_LEVEL", False);
- tok_TWO_LEVEL = XkbInternAtom(NULL, "TWO_LEVEL", False);
- tok_ALPHABETIC = XkbInternAtom(NULL, "ALPHABETIC", False);
- tok_KEYPAD = XkbInternAtom(NULL, "KEYPAD", False);
+ tok_ONE_LEVEL = XkbcInternAtom(NULL, "ONE_LEVEL", False);
+ tok_TWO_LEVEL = XkbcInternAtom(NULL, "TWO_LEVEL", False);
+ tok_ALPHABETIC = XkbcInternAtom(NULL, "ALPHABETIC", False);
+ tok_KEYPAD = XkbcInternAtom(NULL, "KEYPAD", False);
info->dpy = NULL;
info->name = uStringDup("default");
info->errorCount = 0;
&& (warningLevel > 0)) || (warningLevel > 9))
{
WARN1("Multiple definitions of the %s key type\n",
- XkbAtomGetString(NULL, new->name));
+ XkbcAtomGetString(NULL, new->name));
ACTION("Earlier definition ignored\n");
}
FreeKeyTypeInfo(old);
if (report)
{
WARN1("Multiple definitions of the %s key type\n",
- XkbAtomGetString(NULL, new->name));
+ XkbcAtomGetString(NULL, new->name));
ACTION("Later definition ignored\n");
}
FreeKeyTypeInfo(new);
return False;
}
return
- AddLevelName(type, level, XkbInternAtom(NULL, rtrn.str, False), True,
+ AddLevelName(type, level, XkbcInternAtom(NULL, rtrn.str, False), True,
True);
}
if (info.name != NULL)
{
if (XkbAllocNames(xkb, XkbTypesNameMask, 0, 0) == Success)
- xkb->names->types = XkbInternAtom(xkb->dpy, info.name, False);
+ xkb->names->types = XkbcInternAtom(xkb->dpy, info.name, False);
else
{
WSGO("Couldn't allocate space for types name\n");
{
register int i;
- tok_ONE_LEVEL = XkbInternAtom(NULL, "ONE_LEVEL", False);
- tok_TWO_LEVEL = XkbInternAtom(NULL, "TWO_LEVEL", False);
- tok_KEYPAD = XkbInternAtom(NULL, "KEYPAD", False);
+ tok_ONE_LEVEL = XkbcInternAtom(NULL, "ONE_LEVEL", False);
+ tok_TWO_LEVEL = XkbcInternAtom(NULL, "TWO_LEVEL", False);
+ tok_KEYPAD = XkbcInternAtom(NULL, "KEYPAD", False);
info->name = NULL;
info->explicit_group = 0;
info->errorCount = 0;
}
if (arrayNdx == NULL)
{
- key->dfltType = XkbInternAtom(NULL, tmp.str, False);
+ key->dfltType = XkbcInternAtom(NULL, tmp.str, False);
key->defs.defined |= _Key_Type_Dflt;
}
else if (!ExprResolveInteger(arrayNdx, &ndx, SimpleLookup,
}
else
{
- key->types[ndx.uval - 1] = XkbInternAtom(NULL, tmp.str, False);
+ key->types[ndx.uval - 1] = XkbcInternAtom(NULL, tmp.str, False);
key->typesDefined |= (1 << (ndx.uval - 1));
}
}
return False;
}
info->groupNames[tmp.uval - 1 + info->explicit_group] =
- XkbInternAtom(NULL, name.str, False);
+ XkbcInternAtom(NULL, name.str, False);
return True;
}
*autoType = False;
if ((width == 1) || (width == 0))
{
- *typeNameRtrn = XkbInternAtom(NULL, "ONE_LEVEL", False);
+ *typeNameRtrn = XkbcInternAtom(NULL, "ONE_LEVEL", False);
*autoType = True;
}
else if (width == 2)
{
if (syms && KSIsLower(syms[0]) && KSIsUpper(syms[1]))
{
- *typeNameRtrn = XkbInternAtom(NULL, "ALPHABETIC", False);
+ *typeNameRtrn = XkbcInternAtom(NULL, "ALPHABETIC", False);
}
else if (syms && (XkbKSIsKeypad(syms[0]) || XkbKSIsKeypad(syms[1])))
{
- *typeNameRtrn = XkbInternAtom(NULL, "KEYPAD", False);
+ *typeNameRtrn = XkbcInternAtom(NULL, "KEYPAD", False);
*autoType = True;
}
else
{
- *typeNameRtrn = XkbInternAtom(NULL, "TWO_LEVEL", False);
+ *typeNameRtrn = XkbcInternAtom(NULL, "TWO_LEVEL", False);
*autoType = True;
}
}
if (syms && KSIsLower(syms[0]) && KSIsUpper(syms[1]))
if (KSIsLower(syms[2]) && KSIsUpper(syms[3]))
*typeNameRtrn =
- XkbInternAtom(NULL, "FOUR_LEVEL_ALPHABETIC", False);
+ XkbcInternAtom(NULL, "FOUR_LEVEL_ALPHABETIC", False);
else
- *typeNameRtrn = XkbInternAtom(NULL,
+ *typeNameRtrn = XkbcInternAtom(NULL,
"FOUR_LEVEL_SEMIALPHABETIC",
False);
else if (syms && (XkbKSIsKeypad(syms[0]) || XkbKSIsKeypad(syms[1])))
- *typeNameRtrn = XkbInternAtom(NULL, "FOUR_LEVEL_KEYPAD", False);
+ *typeNameRtrn = XkbcInternAtom(NULL, "FOUR_LEVEL_KEYPAD", False);
else
- *typeNameRtrn = XkbInternAtom(NULL, "FOUR_LEVEL", False);
+ *typeNameRtrn = XkbcInternAtom(NULL, "FOUR_LEVEL", False);
/* XXX: why not set autoType here? */
}
return ((width >= 0) && (width <= 4));
}
/* now copy info into xkb. */
- xkb->names->symbols = XkbInternAtom(xkb->dpy, info.name, False);
+ xkb->names->symbols = XkbcInternAtom(xkb->dpy, info.name, False);
if (info.aliases)
ApplyAliases(xkb, False, &info.aliases);
for (i = 0; i < XkbNumKbdGroups; i++)
srv = info->xkb->server;
names = info->xkb->names;
stmtName =
- XkbInternAtom(info->xkb->dpy, XkbAtomGetString(NULL, stmt->name),
+ XkbcInternAtom(info->xkb->dpy, XkbcAtomGetString(NULL, stmt->name),
False);
for (i = 0, bit = 1, nextFree = -1; i < XkbNumVirtualMods; i++, bit <<= 1)
{
return False;
}
/* get the actual name */
- fieldStr = XkbAtomGetString(xkb->dpy, field);
+ fieldStr = XkbcAtomGetString(xkb->dpy, field);
if (fieldStr == NULL)
return False;
/* For each named modifier, get the name and compare it to the one passed
*/
for (i = 0; i < XkbNumVirtualMods; i++)
{
- modStr = XkbAtomGetString(xkb->dpy, xkb->names->vmods[i]);
+ modStr = XkbcAtomGetString(xkb->dpy, xkb->names->vmods[i]);
if ((modStr != NULL) && (uStrCaseCmp(fieldStr, modStr) == 0))
{
val_rtrn->uval = i;
Atom name;
ExprResult rtrn;
- name = XkbInternAtom(xkb->dpy, "NumLock", False);
+ name = XkbcInternAtom(xkb->dpy, "NumLock", False);
if ((xkb) && LookupVModIndex((char *) xkb, None, name, TypeInt, &rtrn))
{
return rtrn.ival;
for (i = 0, bit = 1; i < XkbNumVirtualMods; i++, bit <<= 1)
{
char *str1, *str2;
- str1 = XkbAtomGetString(info->xkb->dpy, names->vmods[i]);
- str2 = XkbAtomGetString(NULL, def->value.str);
+ str1 = XkbcAtomGetString(info->xkb->dpy, names->vmods[i]);
+ str2 = XkbcAtomGetString(NULL, def->value.str);
if ((info->available & bit) && (uStrCaseCmp(str1, str2) == Equal))
{
val_rtrn->uval = i;
case 118:
#line 630 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"action",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"action",False); }
break;
case 119:
#line 632 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"interpret",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"interpret",False); }
break;
case 120:
#line 634 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"type",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"type",False); }
break;
case 121:
#line 636 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"key",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"key",False); }
break;
case 122:
#line 638 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"group",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"group",False); }
break;
case 123:
#line 640 "xkbparse.y"
- {(yyval.sval)=XkbInternAtom(NULL,"modifier_map",False);}
+ {(yyval.sval)=XkbcInternAtom(NULL,"modifier_map",False);}
break;
case 124:
#line 642 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"indicator",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"indicator",False); }
break;
case 125:
#line 644 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"shape",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"shape",False); }
break;
case 126:
#line 646 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"row",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"row",False); }
break;
case 127:
#line 648 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"section",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"section",False); }
break;
case 128:
#line 650 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"text",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"text",False); }
break;
case 129:
case 179:
#line 844 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,scanStr,False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,scanStr,False); }
break;
case 180:
#line 845 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,"default",False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,"default",False); }
break;
case 181:
#line 848 "xkbparse.y"
- { (yyval.sval)= XkbInternAtom(NULL,scanStr,False); }
+ { (yyval.sval)= XkbcInternAtom(NULL,scanStr,False); }
break;
case 182:
;
Element : ACTION_TOK
- { $$= XkbInternAtom(NULL,"action",False); }
+ { $$= XkbcInternAtom(NULL,"action",False); }
| INTERPRET
- { $$= XkbInternAtom(NULL,"interpret",False); }
+ { $$= XkbcInternAtom(NULL,"interpret",False); }
| TYPE
- { $$= XkbInternAtom(NULL,"type",False); }
+ { $$= XkbcInternAtom(NULL,"type",False); }
| KEY
- { $$= XkbInternAtom(NULL,"key",False); }
+ { $$= XkbcInternAtom(NULL,"key",False); }
| GROUP
- { $$= XkbInternAtom(NULL,"group",False); }
+ { $$= XkbcInternAtom(NULL,"group",False); }
| MODIFIER_MAP
- {$$=XkbInternAtom(NULL,"modifier_map",False);}
+ {$$=XkbcInternAtom(NULL,"modifier_map",False);}
| INDICATOR
- { $$= XkbInternAtom(NULL,"indicator",False); }
+ { $$= XkbcInternAtom(NULL,"indicator",False); }
| SHAPE
- { $$= XkbInternAtom(NULL,"shape",False); }
+ { $$= XkbcInternAtom(NULL,"shape",False); }
| ROW
- { $$= XkbInternAtom(NULL,"row",False); }
+ { $$= XkbcInternAtom(NULL,"row",False); }
| SECTION
- { $$= XkbInternAtom(NULL,"section",False); }
+ { $$= XkbcInternAtom(NULL,"section",False); }
| TEXT
- { $$= XkbInternAtom(NULL,"text",False); }
+ { $$= XkbcInternAtom(NULL,"text",False); }
;
OptMergeMode : MergeMode { $$= $1; }
KeyName : KEYNAME { $$= scanStr; scanStr= NULL; }
;
-Ident : IDENT { $$= XkbInternAtom(NULL,scanStr,False); }
- | DEFAULT { $$= XkbInternAtom(NULL,"default",False); }
+Ident : IDENT { $$= XkbcInternAtom(NULL,scanStr,False); }
+ | DEFAULT { $$= XkbcInternAtom(NULL,"default",False); }
;
-String : STRING { $$= XkbInternAtom(NULL,scanStr,False); }
+String : STRING { $$= XkbcInternAtom(NULL,scanStr,False); }
;
OptMapName : MapName { $$= $1; }