Lines Matching refs:weights
118 struct element_list_t *weights; member
380 newp->weights = NULL; in new_element()
730 elem->weights = (struct element_list_t *) in insert_weights()
732 memset (elem->weights, '\0', nrules * sizeof (struct element_list_t)); in insert_weights()
746 elem->weights[weight_cnt].w = (struct element_t **) in insert_weights()
748 elem->weights[weight_cnt].w[0] = NULL; in insert_weights()
749 elem->weights[weight_cnt].cnt = 1; in insert_weights()
774 elem->weights[weight_cnt].w = (struct element_t **) in insert_weights()
776 elem->weights[weight_cnt].w[0] = val; in insert_weights()
777 elem->weights[weight_cnt].cnt = 1; in insert_weights()
786 struct element_t **weights = NULL; in insert_weights() local
861 memcpy (newp, weights, cnt * sizeof (struct element_t *)); in insert_weights()
862 weights = newp; in insert_weights()
864 weights[cnt++] = charelem; in insert_weights()
869 elem->weights[weight_cnt].w = (struct element_t **) in insert_weights()
872 memcpy (elem->weights[weight_cnt].w, weights, in insert_weights()
874 elem->weights[weight_cnt].cnt = cnt; in insert_weights()
892 elem->weights[weight_cnt].w = (struct element_t **) in insert_weights()
894 elem->weights[weight_cnt].w[0] = ELEMENT_ELLIPSIS2; in insert_weights()
895 elem->weights[weight_cnt].cnt = 1; in insert_weights()
927 elem->weights[weight_cnt].w = (struct element_t **) in insert_weights()
930 elem->weights[weight_cnt].w[0] = elem; in insert_weights()
932 elem->weights[weight_cnt].w[0] = ELEMENT_ELLIPSIS2; in insert_weights()
933 elem->weights[weight_cnt].cnt = 1; in insert_weights()
1264 elem->weights = (struct element_list_t *) in handle_ellipsis()
1268 if (collate->ellipsis_weight.weights[cnt].cnt == 1 in handle_ellipsis()
1269 && (collate->ellipsis_weight.weights[cnt].w[0] in handle_ellipsis()
1272 elem->weights[cnt].w = (struct element_t **) in handle_ellipsis()
1275 elem->weights[cnt].w[0] = elem; in handle_ellipsis()
1276 elem->weights[cnt].cnt = 1; in handle_ellipsis()
1281 elem->weights[cnt].w = in handle_ellipsis()
1282 collate->ellipsis_weight.weights[cnt].w; in handle_ellipsis()
1283 elem->weights[cnt].cnt = in handle_ellipsis()
1284 collate->ellipsis_weight.weights[cnt].cnt; in handle_ellipsis()
1464 elem->weights = (struct element_list_t *) in handle_ellipsis()
1468 if (collate->ellipsis_weight.weights[cnt].cnt == 1 in handle_ellipsis()
1469 && (collate->ellipsis_weight.weights[cnt].w[0] in handle_ellipsis()
1472 elem->weights[cnt].w = (struct element_t **) in handle_ellipsis()
1475 elem->weights[cnt].w[0] = elem; in handle_ellipsis()
1476 elem->weights[cnt].cnt = 1; in handle_ellipsis()
1481 elem->weights[cnt].w = in handle_ellipsis()
1482 collate->ellipsis_weight.weights[cnt].w; in handle_ellipsis()
1483 elem->weights[cnt].cnt = in handle_ellipsis()
1484 collate->ellipsis_weight.weights[cnt].cnt; in handle_ellipsis()
1607 for (j = 0; j < runp->weights[i].cnt; ++j) in collate_finish()
1609 if (runp->weights[i].w[j] != NULL) in collate_finish()
1611 if (runp->weights[i].w[j]->weights == NULL) in collate_finish()
1615 runp->weights[i].w[j]->name); in collate_finish()
1618 runp->weights[i].w[j] = &collate->undefined; in collate_finish()
1622 runp->weights[i].w[j]->used_in_level |= 1 << i; in collate_finish()
1727 else if (runp->mbs != NULL && runp->weights != NULL) in collate_finish()
1909 char buf[elem->weights[cnt].cnt * 7]; in output_weight()
1913 for (i = 0; i < elem->weights[cnt].cnt; ++i) in output_weight()
1915 if (elem->weights[cnt].w[i] != NULL) in output_weight()
1917 elem->weights[cnt].w[i]->mborder[cnt]); in output_weight()
1947 int32_t buf[elem->weights[cnt].cnt]; in output_weightwc()
1951 for (i = 0, j = 0; i < elem->weights[cnt].cnt; ++i) in output_weightwc()
1952 if (elem->weights[cnt].w[i] != NULL) in output_weightwc()
1953 buf[j++] = elem->weights[cnt].w[i]->wcorder; in output_weightwc()
2417 if (runp->mbs != NULL && runp->weights != NULL && !runp->is_character) in collate_output()
2438 if (runp->mbs != NULL && runp->weights != NULL && !runp->is_character) in collate_output()