Lines Matching refs:syms
225 KeySym tsyms[XkbMaxSymsPerKey] = {NoSymbol}, *syms;
236 syms = &pCore->map[(first - pCore->minKeyCode) * pCore->mapWidth];
237 for (key = first; key < (first + num); key++, syms += pCore->mapWidth) {
243 nG = XkbKeyTypesForCoreSymbols(xkb, pCore->mapWidth, syms, explicit,
366 KeySymsPtr syms;
419 syms = calloc(1, sizeof(*syms));
420 if (!syms)
427 * symbols on a keyboard that has 3 groups -> 12 syms per key */
431 syms->mapWidth = maxSymsPerKey;
432 syms->minKeyCode = xkb->min_key_code;
433 syms->maxKeyCode = xkb->max_key_code;
435 tmp = syms->mapWidth * (xkb->max_key_code - xkb->min_key_code + 1);
436 syms->map = calloc(tmp, sizeof(*syms->map));
437 if (!syms->map) {
438 free(syms);
447 n = (key - xkb->min_key_code) * syms->mapWidth;
448 pCore = &syms->map[n];
473 if (groupWidth > 0 && syms->mapWidth >= 3)
475 if (groupWidth > 1 && syms->mapWidth >= 4)
480 while (groupWidth > 2 && idx < syms->mapWidth &&
520 return syms;
948 if (src->map->syms) {
950 tmp = reallocarray(dst->map->syms,
954 dst->map->syms = tmp;
957 memcpy(dst->map->syms, src->map->syms,
961 free(dst->map->syms);
962 dst->map->syms = NULL;