Lines Matching defs:items
537 htab_item_t **items;
549 items = (htab_item_t **)calloc(
551 /* re-hash all items to the new table */
552 if (items != NULL) {
559 item = tab->items[(i * oldsz) + j];
562 itemp = &items[(i * newsz) +
578 free(tab->items);
579 tab->items = items;
621 htab_item_t **items = NULL;
630 items = (htab_item_t **)calloc(
632 if (items != NULL) {
634 tab->items = items;
704 htab_item_t *items = NULL, **itemp;
715 items = tab->items[hval & tab->mask];
716 while (items != NULL) {
717 if (tab->c->cmp(items->p, p, 0) == 0) {
719 ec = tab->c->replace_hook(items->p, p, uid_p,
725 items = NULL;
728 items = items->next;
736 /* make new items for the object */
737 items = (htab_item_t *)calloc(tab->chunks, sizeof (htab_item_t));
739 if (items == NULL ||
781 items[i].hval = hval;
782 items[i].p = p;
783 itemp = &tab->items[(i * chunksz) + (hval & tab->mask)];
788 items[i].next = *itemp;
789 *itemp = &items[i];
802 items = NULL;
814 if (ec != 0 && items != NULL) {
815 free(items);
844 htab_item_t *items = NULL;
869 itemp = &tab->items[(i * chunksz) + (hval & tab->mask)];
881 items = item;
915 if (items != NULL) {
936 if (items != NULL) {
937 free(items);
994 itemp = &tab->items[(i * chunksz) + (hval & tab->mask)];
1026 itemp = &tab->items[(hval & tab->mask)];
1094 htab_item_t *items;
1101 items = tab->items[i];
1102 while (items != NULL) {
1103 tab->c->dump(items->p);
1104 items = items->next;