Lines Matching refs:tbl
595 struct reserve_info *ri, **tbl; in sort_reserve_entries() local
606 tbl = xmalloc(n * sizeof(*tbl)); in sort_reserve_entries()
611 tbl[i++] = ri; in sort_reserve_entries()
613 qsort(tbl, n, sizeof(*tbl), cmp_reserve_info); in sort_reserve_entries()
615 bi->reservelist = tbl[0]; in sort_reserve_entries()
617 tbl[i]->next = tbl[i+1]; in sort_reserve_entries()
618 tbl[n-1]->next = NULL; in sort_reserve_entries()
620 free(tbl); in sort_reserve_entries()
636 struct property *prop, **tbl; in sort_properties() local
644 tbl = xmalloc(n * sizeof(*tbl)); in sort_properties()
647 tbl[i++] = prop; in sort_properties()
649 qsort(tbl, n, sizeof(*tbl), cmp_prop); in sort_properties()
651 node->proplist = tbl[0]; in sort_properties()
653 tbl[i]->next = tbl[i+1]; in sort_properties()
654 tbl[n-1]->next = NULL; in sort_properties()
656 free(tbl); in sort_properties()
672 struct node *subnode, **tbl; in sort_subnodes() local
680 tbl = xmalloc(n * sizeof(*tbl)); in sort_subnodes()
683 tbl[i++] = subnode; in sort_subnodes()
685 qsort(tbl, n, sizeof(*tbl), cmp_subnode); in sort_subnodes()
687 node->children = tbl[0]; in sort_subnodes()
689 tbl[i]->next_sibling = tbl[i+1]; in sort_subnodes()
690 tbl[n-1]->next_sibling = NULL; in sort_subnodes()
692 free(tbl); in sort_subnodes()