Lines Matching defs:map
125 %type <list> map
186 | MAPLOWER map
188 | MAPUPPER map
190 | DIGITMAP map
224 map : LBRK RUNE RUNE RBRK
229 $$->map = $3;
232 | map LBRK RUNE RUNE RBRK
237 $$->map = $4;
245 $$->map = $6;
248 | map LBRK RUNE THRU RUNE ':' RUNE RBRK
253 $$->map = $7;
309 mapupper.map[x] = x;
310 maplower.map[x] = x;
374 set_map(rune_map *map, rune_list *list, u_int32_t flag)
376 list->map &= charsetmask;
377 list->map |= charsetbits;
380 add_map(map, list, flag);
386 set_digitmap(rune_map *map, rune_list *list)
395 * Currently, we support mapping up to 255. Attempts to map
398 _RuneType digit = list->map + (i - list->min);
404 add_map(map, tmp, digit);
413 add_map(rune_map *map, rune_list *list, u_int32_t flag)
422 map->map[list->min++] |= flag;
424 map->map[list->min++] = list->map++;
434 if (!(r = map->root) || (list->max < r->min - 1)
441 list->next = map->root;
442 map->root = list;
446 for (r = map->root; r && r->max + 1 < list->min; r = r->next)
484 if (!flag && list->map - list->min != r->map - r->min) {
500 fprintf(stderr, "Error: conflicting map entries\n");
533 r->map = list->map;
557 r->map = list->map;
630 list->map = list->types[0];
632 if (list->types[x] != list->map) {
633 list->map = 0;
646 new_locale.frl_runetype[x] = htonl(types.map[x]);
647 new_locale.frl_maplower[x] = htonl(maplower.map[x]);
648 new_locale.frl_mapupper[x] = htonl(mapupper.map[x]);
702 re.fre_map = htonl(list->map);
716 re.fre_map = htonl(list->map);
730 re.fre_map = htonl(list->map);
742 if (!list->map) {
770 if (isprint(maplower.map[x]))
771 fprintf(stderr, " '%c'", (int)maplower.map[x]);
772 else if (maplower.map[x])
773 fprintf(stderr, "%04x", maplower.map[x]);
784 fprintf(stderr, "\t%04x - %04x : %04x\n", list->min, list->max, list->map);
789 if (isprint(mapupper.map[x]))
790 fprintf(stderr, " '%c'", (int)mapupper.map[x]);
791 else if (mapupper.map[x])
792 fprintf(stderr, "%04x", mapupper.map[x]);
803 fprintf(stderr, "\t%04x - %04x : %04x\n", list->min, list->max, list->map);
809 u_int32_t r = types.map[x];
836 if (list->map && list->min + 3 < list->max) {
837 u_int32_t r = list->map;