}
static void
-ActionsInit(void);
+ActionsInit(struct xkb_context *context);
int
HandleActionDef(ExprDef * def,
unsigned tmp, hndlrType;
if (!actionsInitialized)
- ActionsInit();
+ ActionsInit(xkb->context);
if (def->op != ExprActionDecl)
{
if ((arg->op == OpNot) || (arg->op == OpInvert))
{
field = arg->value.child;
- constFalse.value.str = xkb_intern_atom("false");
+ constFalse.value.str = xkb_atom_intern(xkb->context, "false");
value = &constFalse;
}
else
{
field = arg;
- constTrue.value.str = xkb_intern_atom("true");
+ constTrue.value.str = xkb_atom_intern(xkb->context, "true");
value = &constTrue;
}
}
ActionInfo *new, *old;
if (!actionsInitialized)
- ActionsInit();
+ ActionsInit(xkb->context);
new = uTypedAlloc(ActionInfo);
if (new == NULL)
/***====================================================================***/
static void
-ActionsInit(void)
+ActionsInit(struct xkb_context *context)
{
if (!actionsInitialized)
{
constTrue.common.next = NULL;
constTrue.op = ExprIdent;
constTrue.type = TypeBoolean;
- constTrue.value.str = xkb_intern_atom("true");
+ constTrue.value.str = xkb_atom_intern(context, "true");
constFalse.common.stmtType = StmtExpr;
constFalse.common.next = NULL;
constFalse.op = ExprIdent;
constFalse.type = TypeBoolean;
- constFalse.value.str = xkb_intern_atom("false");
+ constFalse.value.str = xkb_atom_intern(context, "false");
actionsInitialized = 1;
}
}