Lines Matching defs:accentmap
120 static void dump_accent_definition(char *name, accentmap_t *accentmap);
282 get_definition_line(FILE *fd, keymap_t *keymap, accentmap_t *accentmap)
299 c = get_accent_definition_line(accentmap);
302 if (c > accentmap->n_accs)
303 accentmap->n_accs = c;
750 dump_accent_definition(char *name, accentmap_t *accentmap)
756 name, accentmap->n_accs);
757 if (accentmap->n_accs <= 0) {
764 c = accentmap->acc[i].accchar;
777 c = accentmap->acc[i].map[j][0];
786 printf("0x%02x },", accentmap->acc[i].map[j][1]);
797 accentmap_t accentmap;
824 memset(&accentmap, 0, sizeof(accentmap));
827 if (get_definition_line(fd, &keymap, &accentmap) < 0)
839 dump_accent_definition(opt, &accentmap);
847 if ((accentmap.n_accs > 0)
848 && (ioctl(0, PIO_DEADKEYMAP, &accentmap) < 0)) {
849 warn("setting accentmap");
859 accentmap_t accentmap;
864 if (ioctl(0, GIO_DEADKEYMAP, &accentmap) < 0)
865 memset(&accentmap, 0, sizeof(accentmap));
877 print_accent_definition_line(stdout, i, &accentmap.acc[i]);