Lines Matching refs:ksym
45 static struct ksym ksym_tab_by_ksym[NUMKSYMS];
96 return strcmp(((const struct ksym *) a)->name,
97 ((const struct ksym *) b)->name);
104 return ((const struct ksym *) b)->value -
105 ((const struct ksym *) a)->value;
112 return strcmp((const char *) a, ((const struct ksym *) b)->name);
119 return ((const struct ksym *) b)->value - *((const int *) a);
130 qsort(ksym_tab_by_name, NUMKSYMS, sizeof(struct ksym), qcmp_name);
131 qsort(ksym_tab_by_ksym, NUMKSYMS, sizeof(struct ksym), qcmp_ksym);
140 struct ksym *r;
146 NUMKSYMS, sizeof(struct ksym), bcmp_ksym);
160 struct ksym *r;
166 NUMKSYMS, sizeof(struct ksym), bcmp_name);
177 ksym_upcase(keysym_t ksym)
180 if (ksym >= KS_f1 && ksym <= KS_f20)
181 return KS_F1 - KS_f1 + ksym;
183 if (KS_GROUP(ksym) == KS_GROUP_Plain && ksym <= 0xff &&
184 latin1_to_upper[ksym] != 0x00)
185 return latin1_to_upper[ksym];
187 return ksym;