Lines Matching refs:old
62 LEDInfo *old, *last;
65 for (old = oldLEDs; old != NULL; old = (LEDInfo *) old->defs.next)
67 if (old->name == new->name)
71 if ((old->real_mods == new->real_mods) &&
72 (old->vmods == new->vmods) &&
73 (old->groups == new->groups) &&
74 (old->ctrls == new->ctrls) &&
75 (old->which_mods == new->which_mods) &&
76 (old->which_groups == new->which_groups))
78 old->defs.defined |= new->defs.defined;
83 CommonInfo *next = old->defs.next;
84 if (((old->defs.fileID == new->defs.fileID)
88 XkbAtomText(NULL, old->name, XkbMessage));
91 *old = *new;
92 old->defs.next = next;
96 if (UseNewField(_LED_Index, &old->defs, &new->defs, &collide))
98 old->indicator = new->indicator;
99 old->defs.defined |= _LED_Index;
101 if (UseNewField(_LED_Mods, &old->defs, &new->defs, &collide))
103 old->which_mods = new->which_mods;
104 old->real_mods = new->real_mods;
105 old->vmods = new->vmods;
106 old->defs.defined |= _LED_Mods;
108 if (UseNewField(_LED_Groups, &old->defs, &new->defs, &collide))
110 old->which_groups = new->which_groups;
111 old->groups = new->groups;
112 old->defs.defined |= _LED_Groups;
114 if (UseNewField(_LED_Ctrls, &old->defs, &new->defs, &collide))
116 old->ctrls = new->ctrls;
117 old->defs.defined |= _LED_Ctrls;
119 if (UseNewField(_LED_Explicit, &old->defs, &new->defs, &collide))
121 old->flags &= ~XkbIM_NoExplicit;
122 old->flags |= (new->flags & XkbIM_NoExplicit);
123 old->defs.defined |= _LED_Explicit;
125 if (UseNewField(_LED_Automatic, &old->defs, &new->defs, &collide))
127 old->flags &= ~XkbIM_NoAutomatic;
128 old->flags |= (new->flags & XkbIM_NoAutomatic);
129 old->defs.defined |= _LED_Automatic;
131 if (UseNewField(_LED_DrivesKbd, &old->defs, &new->defs, &collide))
133 old->flags &= ~XkbIM_LEDDrivesKB;
134 old->flags |= (new->flags & XkbIM_LEDDrivesKB);
135 old->defs.defined |= _LED_DrivesKbd;
140 XkbAtomText(NULL, old->name, XkbMessage));
146 if (old->defs.next == NULL)
147 last = old;
150 old = malloc(sizeof(LEDInfo));
151 if (!old)
158 *old = *new;
159 old->defs.next = NULL;
162 last->defs.next = &old->defs;
165 return old;
518 Atom old = xkb->names->indicators[led->indicator - 1];
522 XkbAtomGetString(xkb->dpy, old),