libxkbcomp: Use the internal Atom implementation
authorDan Nicholson <dbn.lists@gmail.com>
Sat, 28 Mar 2009 03:58:27 +0000 (20:58 -0700)
committerDan Nicholson <dbn.lists@gmail.com>
Sat, 28 Mar 2009 19:01:36 +0000 (12:01 -0700)
s/XkbInternAtom/XkbcInternAtom/ and s/XkbAtomGetString/XkbcAtomGetString/

src/xkbcomp/action.c
src/xkbcomp/compat.c
src/xkbcomp/expr.c
src/xkbcomp/geometry.c
src/xkbcomp/indicators.c
src/xkbcomp/keycodes.c
src/xkbcomp/keytypes.c
src/xkbcomp/symbols.c
src/xkbcomp/vmod.c
src/xkbcomp/xkbparse.c
src/xkbcomp/xkbparse.y

index 92ad909..ee9bce7 100644 (file)
@@ -372,7 +372,7 @@ CheckModifierField(XkbcDescPtr xkb,
     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)))
         {
@@ -1311,7 +1311,7 @@ HandleActionDef(ExprDef * def,
                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");
@@ -1454,12 +1454,12 @@ ActionsInit(void)
         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;
index d870fc1..8275e0f 100644 (file)
@@ -831,7 +831,7 @@ CompileCompatMap(XkbFile *file, XkbcDescPtr xkb, unsigned merge,
         {
             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");
index caf288b..3fd6782 100644 (file)
@@ -135,17 +135,17 @@ ExprResolveLhs(ExprDef * expr,
     {
     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;
     }
@@ -166,7 +166,7 @@ SimpleLookup(char * priv,
     {
         return False;
     }
-    str = XkbAtomGetString(NULL, field);
+    str = XkbcAtomGetString(NULL, field);
     for (entry = (LookupEntry *) priv;
          (entry != NULL) && (entry->name != NULL); entry++)
     {
@@ -190,7 +190,7 @@ RadioLookup(char * priv,
 
     if ((field == None) || (elem != None) || (type != TypeInt))
         return False;
-    str = XkbAtomGetString(NULL, field);
+    str = XkbcAtomGetString(NULL, field);
     if (str)
     {
         if (uStrCasePrefix("group", str))
@@ -218,7 +218,7 @@ TableLookup(char * priv,
 
     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)) ||
@@ -264,7 +264,7 @@ LookupModMask(char * priv,
 
     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)
@@ -397,7 +397,7 @@ ExprResolveBoolean(ExprDef * expr,
         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) ||
@@ -487,7 +487,7 @@ ExprResolveFloat(ExprDef * expr,
         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;
@@ -600,7 +600,7 @@ ExprResolveInteger(ExprDef * expr,
         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))
                 {
@@ -726,7 +726,7 @@ ExprResolveString(ExprDef * expr,
                    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 = "";
@@ -1051,7 +1051,7 @@ ExprResolveKeySym(ExprDef * expr,
     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;
index 9d09cb7..a6a3f98 100644 (file)
@@ -540,7 +540,7 @@ InitSectionInfo(SectionInfo * si, GeometryInfo * info)
     {
         *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;
@@ -552,7 +552,7 @@ InitSectionInfo(SectionInfo * si, GeometryInfo * info)
         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;
@@ -584,7 +584,7 @@ ClearSectionInfo(SectionInfo * si, GeometryInfo * info)
 {
 
     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;
@@ -1498,7 +1498,7 @@ SetShapeDoodadField(DoodadInfo * di,
             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;
     }
@@ -1633,7 +1633,7 @@ SetTextDoodadField(DoodadInfo * di,
                                  "string");
         }
         di->defs.defined |= def;
-        *pField.str = XkbInternAtom(NULL, tmp.str, False);
+        *pField.str = XkbcInternAtom(NULL, tmp.str, False);
     }
     else
     {
@@ -1687,17 +1687,17 @@ SetIndicatorDoodadField(DoodadInfo * di,
         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;
     }
@@ -1761,7 +1761,7 @@ SetLogoDoodadField(DoodadInfo * di,
             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;
     }
@@ -1867,7 +1867,7 @@ SetDoodadField(DoodadInfo * di,
                                  "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)
@@ -2077,7 +2077,7 @@ SetKeyField(KeyInfo * key,
             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))
@@ -2093,7 +2093,7 @@ SetKeyField(KeyInfo * key,
             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))
@@ -2351,7 +2351,7 @@ HandleGeometryVar(VarDef * stmt, XkbcDescPtr xkb, GeometryInfo * info)
             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)
@@ -2366,7 +2366,7 @@ HandleGeometryVar(VarDef * stmt, XkbcDescPtr xkb, GeometryInfo * info)
             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
@@ -2384,7 +2384,7 @@ HandleGeometryVar(VarDef * stmt, XkbcDescPtr xkb, GeometryInfo * info)
         info->errorCount++;
         return ReportBadType("keyboard", field.str, "geometry", "string");
     }
-    *pField = XkbInternAtom(NULL, tmp.str, False);
+    *pField = XkbcInternAtom(NULL, tmp.str, False);
     return True;
 }
 
@@ -2420,7 +2420,7 @@ HandleShapeBody(ShapeDef * def, ShapeInfo * si, unsigned merge,
     {
         if (ol->nPoints < 1)
         {
-            SetShapeField(si, XkbAtomGetString(NULL, ol->field), NULL,
+            SetShapeField(si, XkbcAtomGetString(NULL, ol->field), NULL,
                           ol->points, info);
             continue;
         }
@@ -2499,7 +2499,7 @@ HandleShapeDef(ShapeDef * def, XkbcDescPtr xkb, unsigned merge,
     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;
@@ -2526,7 +2526,7 @@ HandleDoodadDef(DoodadDef * def,
     }
     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)
@@ -2566,7 +2566,7 @@ HandleOverlayDef(OverlayDef * def,
     }
     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)
     {
@@ -2818,7 +2818,7 @@ HandleSectionDef(SectionDef * def,
         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");
@@ -2826,7 +2826,7 @@ HandleSectionDef(SectionDef * def,
         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))
@@ -2926,7 +2926,7 @@ CopyShapeDef(Display * dpy, XkbGeometryPtr geom, ShapeInfo * 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)
     {
@@ -3015,7 +3015,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                 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:
@@ -3036,7 +3036,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       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)
         {
@@ -3060,7 +3060,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       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)
         {
@@ -3070,7 +3070,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       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)
         {
@@ -3080,7 +3080,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       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)
         {
@@ -3090,7 +3090,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       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)
         {
@@ -3100,7 +3100,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       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)
         {
@@ -3110,7 +3110,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       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)
         {
@@ -3129,7 +3129,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
             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')
@@ -3150,7 +3150,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
             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++;
@@ -3204,7 +3204,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       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)
         {
@@ -3214,7 +3214,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                       ddText(info->dpy, di));
                 ACTION("Using black\n");
             }
-            di->offColor = XkbInternAtom(NULL, "black", False);
+            di->offColor = XkbcInternAtom(NULL, "black", False);
         }
         break;
     case XkbLogoDoodad:
@@ -3253,7 +3253,7 @@ VerifyDoodadInfo(DoodadInfo * di, GeometryInfo * info)
                 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:
@@ -3276,19 +3276,19 @@ FontFromParts(Atom fontTok,
     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 =
@@ -3315,7 +3315,7 @@ CopyDoodadDef(XkbGeometryPtr geom,
 
     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)
     {
@@ -3337,7 +3337,7 @@ CopyDoodadDef(XkbGeometryPtr geom,
             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);
@@ -3354,10 +3354,10 @@ CopyDoodadDef(XkbGeometryPtr geom,
                                               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;
@@ -3367,12 +3367,12 @@ CopyDoodadDef(XkbGeometryPtr geom,
             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;
@@ -3382,7 +3382,7 @@ CopyDoodadDef(XkbGeometryPtr geom,
             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);
@@ -3510,7 +3510,7 @@ CopyOverlayDef(XkbGeometryPtr geom,
 
     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)
     {
@@ -3560,7 +3560,7 @@ CopySectionDef(XkbGeometryPtr geom, SectionInfo * si, GeometryInfo * info)
     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)
@@ -3620,7 +3620,7 @@ CopySectionDef(XkbGeometryPtr geom, SectionInfo * si, GeometryInfo * info)
             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);
@@ -3689,13 +3689,13 @@ CompileGeometry(XkbFile *file, XkbcDescPtr xkb, unsigned merge)
         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,
@@ -3707,14 +3707,14 @@ CompileGeometry(XkbFile *file, XkbcDescPtr xkb, unsigned merge)
         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)
index 9516059..3428d37 100644 (file)
@@ -47,7 +47,7 @@
 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;
@@ -481,7 +481,7 @@ BindIndicators(XkbcDescPtr xkb, Bool force, LEDInfo *unbound,
                         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;
                     }
                 }
@@ -516,8 +516,8 @@ BindIndicators(XkbcDescPtr xkb, Bool force, LEDInfo *unbound,
                 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)
                 {
index 4802bac..c1f19da 100644 (file)
@@ -728,7 +728,7 @@ HandleIndicatorNameDef(IndicatorNameDef * def,
         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;
@@ -845,7 +845,7 @@ CompileKeycodes(XkbFile *file, XkbcDescPtr xkb, unsigned merge)
                 == 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++)
@@ -872,8 +872,8 @@ CompileKeycodes(XkbFile *file, XkbcDescPtr xkb, unsigned merge)
                  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;
index 2029712..c40bf65 100644 (file)
@@ -128,10 +128,10 @@ extern Bool AddLevelName(KeyTypeInfo * /* type */ ,
 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;
@@ -327,7 +327,7 @@ AddKeyType(XkbcDescPtr xkb, KeyTypesInfo * info, KeyTypeInfo * new)
                  && (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);
@@ -343,7 +343,7 @@ AddKeyType(XkbcDescPtr xkb, KeyTypesInfo * info, KeyTypeInfo * new)
         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);
@@ -865,7 +865,7 @@ SetLevelName(KeyTypeInfo * type, ExprDef * arrayNdx, ExprDef * value)
         return False;
     }
     return
-        AddLevelName(type, level, XkbInternAtom(NULL, rtrn.str, False), True,
+        AddLevelName(type, level, XkbcInternAtom(NULL, rtrn.str, False), True,
                      True);
 }
 
@@ -1222,7 +1222,7 @@ CompileKeyTypes(XkbFile *file, XkbcDescPtr xkb, unsigned merge)
         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");
index 8cdfc0c..d728c8a 100644 (file)
@@ -242,9 +242,9 @@ InitSymbolsInfo(SymbolsInfo * info, XkbcDescPtr xkb)
 {
     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;
@@ -1134,7 +1134,7 @@ SetSymbolsField(KeyInfo * key,
         }
         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,
@@ -1155,7 +1155,7 @@ SetSymbolsField(KeyInfo * key,
         }
         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));
         }
     }
@@ -1396,7 +1396,7 @@ SetGroupName(SymbolsInfo * info, ExprDef * arrayNdx, ExprDef * value)
         return False;
     }
     info->groupNames[tmp.uval - 1 + info->explicit_group] =
-        XkbInternAtom(NULL, name.str, False);
+        XkbcInternAtom(NULL, name.str, False);
 
     return True;
 }
@@ -1794,23 +1794,23 @@ FindAutomaticType(int width, KeySym * syms, Atom * typeNameRtrn,
     *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;
         }
     }
@@ -1819,16 +1819,16 @@ FindAutomaticType(int width, KeySym * syms, Atom * typeNameRtrn,
         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));
@@ -2243,7 +2243,7 @@ CompileSymbols(XkbFile *file, XkbcDescPtr xkb, unsigned merge)
         }
 
         /* 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++)
index cc82089..a842bc6 100644 (file)
@@ -89,7 +89,7 @@ HandleVModDef(VModDef * stmt, unsigned mergeMode, VModInfo * info)
     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)
     {
@@ -182,7 +182,7 @@ LookupVModIndex(char * priv,
         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
@@ -192,7 +192,7 @@ LookupVModIndex(char * priv,
      */
     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;
@@ -231,7 +231,7 @@ FindKeypadVMod(XkbcDescPtr xkb)
     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;
@@ -251,8 +251,8 @@ ResolveVirtualModifier(ExprDef * def, ExprResult * val_rtrn, VModInfo * info)
         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;
index db4dfc5..7499746 100644 (file)
@@ -2596,57 +2596,57 @@ yyreduce:
 
   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:
@@ -2974,17 +2974,17 @@ yyreduce:
 
   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:
index 2360f24..aaf56e2 100644 (file)
@@ -558,27 +558,27 @@ FieldSpec :       Ident                   { $$= $1; }
                ;
 
 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; }
@@ -764,11 +764,11 @@ Integer           :       INTEGER         { $$= scanInt; }
 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; }