Lines Matching defs:ndx
256 get_index(char *str, int *ndx)
263 *ndx = 0;
269 *ndx = -1;
273 *ndx = -1;
278 *ndx = atoi(ndx_buf);
288 int len, ndx;
311 char *end = get_index(tok + len, &ndx);
314 *end != '\0' || ndx == -1)
316 if (ndx < 1 || ndx > XkbNumKbdGroups) {
317 PR_DEBUG2("Illegal %s index: %d\n", cname[i], ndx);
324 ndx = 0;
330 if ((i == LAYOUT && l_ndx_present & (1 << ndx)) ||
331 (i == VARIANT && v_ndx_present & (1 << ndx))) {
339 l_ndx_present |= 1 << ndx;
341 v_ndx_present |= 1 << ndx;
343 remap->remap[remap->num_remap++].index = ndx;
806 int len, ndx;
826 str = get_index(var + 1, &ndx);
827 if (ndx == -1) {
831 if ((*var == 'l') && mdefs->layout[ndx] && *mdefs->layout[ndx])
832 len += strlen(mdefs->layout[ndx]) + extra_len;
835 else if ((*var == 'v') && mdefs->variant[ndx] && *mdefs->variant[ndx])
836 len += strlen(mdefs->variant[ndx]) + extra_len;
863 str = get_index(var + 1, &ndx);
864 if (ndx == -1) {
867 if ((*var == 'l') && mdefs->layout[ndx] && *mdefs->layout[ndx]) {
870 strcpy(outstr, mdefs->layout[ndx]);
871 outstr += strlen(mdefs->layout[ndx]);
883 else if ((*var == 'v') && mdefs->variant[ndx] &&
884 *mdefs->variant[ndx]) {
887 strcpy(outstr, mdefs->variant[ndx]);
888 outstr += strlen(mdefs->variant[ndx]);