Lines Matching refs:tbl
702 struct reserve_info *ri, **tbl; in sort_reserve_entries() local
713 tbl = xmalloc(n * sizeof(*tbl)); in sort_reserve_entries()
718 tbl[i++] = ri; in sort_reserve_entries()
720 qsort(tbl, n, sizeof(*tbl), cmp_reserve_info); in sort_reserve_entries()
722 dti->reservelist = tbl[0]; in sort_reserve_entries()
724 tbl[i]->next = tbl[i+1]; in sort_reserve_entries()
725 tbl[n-1]->next = NULL; in sort_reserve_entries()
727 free(tbl); in sort_reserve_entries()
743 struct property *prop, **tbl; in sort_properties() local
751 tbl = xmalloc(n * sizeof(*tbl)); in sort_properties()
754 tbl[i++] = prop; in sort_properties()
756 qsort(tbl, n, sizeof(*tbl), cmp_prop); in sort_properties()
758 node->proplist = tbl[0]; in sort_properties()
760 tbl[i]->next = tbl[i+1]; in sort_properties()
761 tbl[n-1]->next = NULL; in sort_properties()
763 free(tbl); in sort_properties()
779 struct node *subnode, **tbl; in sort_subnodes() local
787 tbl = xmalloc(n * sizeof(*tbl)); in sort_subnodes()
790 tbl[i++] = subnode; in sort_subnodes()
792 qsort(tbl, n, sizeof(*tbl), cmp_subnode); in sort_subnodes()
794 node->children = tbl[0]; in sort_subnodes()
796 tbl[i]->next_sibling = tbl[i+1]; in sort_subnodes()
797 tbl[n-1]->next_sibling = NULL; in sort_subnodes()
799 free(tbl); in sort_subnodes()