Lines Matching refs:ref
143 int32_t ref; member
153 int32_t ref[COLL_WEIGHTS_MAX]; member
166 int32_t ref[COLL_WEIGHTS_MAX]; member
176 int32_t ref[COLL_WEIGHTS_MAX]; member
188 int32_t ref[COLLATE_STR_LEN]; member
268 get_pri(int32_t ref) in get_pri() argument
270 if ((ref < 0) || (ref > numpri)) { in get_pri()
274 return (&prilist[ref]); in get_pri()
278 set_pri(int32_t ref, int32_t v, res_t res) in set_pri() argument
282 pri = get_pri(ref); in set_pri()
289 if ((res == REFER) && (ref == v)) { in set_pri()
305 resolve_pri(int32_t ref) in resolve_pri() argument
310 pri = get_pri(ref); in resolve_pri()
410 int32_t *c1 = ((subst_t *)n1)->ref; in subst_compare_ref()
411 int32_t *c2 = ((subst_t *)n2)->ref; in subst_compare_ref()
473 sym->ref = new_pri(); in define_collsym()
520 ud->ref[i] = new_pri(); in get_collundef()
544 cc->ref[i] = new_pri(); in get_collchar()
558 set_pri(sym->ref, nextpri, RESOLVED); in end_order_collsym()
567 int32_t ref; in end_order() local
576 if (((ref = order_weights[i]) < 0) || in end_order()
577 ((p = get_pri(ref)) == NULL) || in end_order()
580 set_pri(currchar->ref[i], pri, RESOLVED); in end_order()
582 set_pri(currchar->ref[i], ref, REFER); in end_order()
606 if (((ref = order_weights[i]) < 0) || in end_order()
607 ((p = get_pri(ref)) == NULL) || in end_order()
609 set_pri(currelem->ref[i], pri, in end_order()
612 set_pri(currelem->ref[i], ref, REFER); in end_order()
621 if (((ref = order_weights[i]) < 0) || in end_order()
622 ((p = get_pri(ref)) == NULL) || in end_order()
626 set_pri(pri_undefined[i], ref, REFER); in end_order()
634 if (((ref = order_weights[i]) < 0) || in end_order()
635 ((p = get_pri(ref)) == NULL) || in end_order()
637 set_pri(currundef->ref[i], pri, RESOLVED); in end_order()
639 set_pri(currundef->ref[i], ref, REFER); in end_order()
688 int32_t ref; in start_order_char() local
719 if (((ref = ellipsis_weights[i]) == -1) || in start_order_char()
720 ((p = get_pri(ref)) == NULL) || in start_order_char()
722 set_pri(cc->ref[i], nextpri, RESOLVED); in start_order_char()
724 set_pri(cc->ref[i], ref, REFER); in start_order_char()
787 e->ref[i] = new_pri(); in define_collelem()
832 add_order_pri(int32_t ref) in add_order_pri() argument
838 order_weights[curr_weight] = ref; in add_order_pri()
845 add_order_pri(s->ref); in add_order_collsym()
858 add_order_pri(cc->ref[curr_weight]); in add_order_char()
864 add_order_pri(e->ref[curr_weight]); in add_order_collelem()
881 add_order_pri(c->ref[curr_weight]); in add_order_symbol()
901 srch.ref[i] = subst_weights[i]; in add_order_subst()
927 s->ref[i] = srch.ref[i]; in add_order_subst()
949 add_subst_pri(int32_t ref) in add_subst_pri() argument
955 subst_weights[curr_subst] = ref; in add_subst_pri()
971 add_subst_pri(cc->ref[curr_weight]); in add_subst_char()
977 add_subst_pri(e->ref[curr_weight]); in add_subst_collelem()
983 add_subst_pri(s->ref); in add_subst_collsym()
992 add_subst_pri(cu->ref[curr_weight]); in add_subst_symbol()
997 add_weight(int32_t ref, int pass) in add_weight() argument
1003 srch.pri = resolve_pri(ref); in add_weight()
1034 get_weight(int32_t ref, int pass) in get_weight() argument
1040 pri = resolve_pri(ref); in get_weight()
1081 for (j = 0; sb->ref[j]; j++) { in dump_collate()
1082 add_weight(sb->ref[j], i); in dump_collate()
1089 add_weights(ce->ref); in dump_collate()
1092 add_weights(cc->ref); in dump_collate()
1136 chars[i].pri[j] = get_weight(cc->ref[j], j); in dump_collate()
1172 for (j = 0; sb->ref[j]; j++) { in dump_collate()
1173 st[n].pri[j] = get_weight(sb->ref[j], i); in dump_collate()
1197 chain[n].pri[i] = get_weight(ce->ref[i], i); in dump_collate()
1219 if ((pri = get_weight(cc->ref[j], j)) < 0) { in dump_collate()