Lines Matching refs:tbl
695 struct reserve_info *ri, **tbl; in sort_reserve_entries() local
706 tbl = xmalloc(n * sizeof(*tbl)); in sort_reserve_entries()
711 tbl[i++] = ri; in sort_reserve_entries()
713 qsort(tbl, n, sizeof(*tbl), cmp_reserve_info); in sort_reserve_entries()
715 dti->reservelist = tbl[0]; in sort_reserve_entries()
717 tbl[i]->next = tbl[i+1]; in sort_reserve_entries()
718 tbl[n-1]->next = NULL; in sort_reserve_entries()
720 free(tbl); in sort_reserve_entries()
736 struct property *prop, **tbl; in sort_properties() local
744 tbl = xmalloc(n * sizeof(*tbl)); in sort_properties()
747 tbl[i++] = prop; in sort_properties()
749 qsort(tbl, n, sizeof(*tbl), cmp_prop); in sort_properties()
751 node->proplist = tbl[0]; in sort_properties()
753 tbl[i]->next = tbl[i+1]; in sort_properties()
754 tbl[n-1]->next = NULL; in sort_properties()
756 free(tbl); in sort_properties()
772 struct node *subnode, **tbl; in sort_subnodes() local
780 tbl = xmalloc(n * sizeof(*tbl)); in sort_subnodes()
783 tbl[i++] = subnode; in sort_subnodes()
785 qsort(tbl, n, sizeof(*tbl), cmp_subnode); in sort_subnodes()
787 node->children = tbl[0]; in sort_subnodes()
789 tbl[i]->next_sibling = tbl[i+1]; in sort_subnodes()
790 tbl[n-1]->next_sibling = NULL; in sort_subnodes()
792 free(tbl); in sort_subnodes()