Lines Matching refs:tab
317 tab = NULL; in db_table()
351 if (tab != NULL) { in reset()
355 if (tab[i]) { in reset()
356 free_entry(tab[i]); in reset()
362 delete tab; in reset()
364 tab = NULL; in reset()
417 (void) memcpy(&newEnumArray[oldSize], &tab[oldSize], in allocateEnumArray()
433 entry_object_p *oldtab = tab; in grow()
450 if ((tab = (entry_object_p*) in grow()
453 tab = oldtab; // restore previous table info in grow()
470 free(tab); in grow()
471 tab = oldtab; in grow()
481 tab[i] = oldtab[i]; in grow()
489 free(tab); in grow()
490 tab = oldtab; in grow()
509 if (count == 0 || tab == NULL) { /* empty table */ in first_entry()
516 if (tab[i] != NULL) { in first_entry()
518 return (tab[i]); in first_entry()
536 if (prev >= table_size || tab == NULL || tab[prev] == NULL) in next_entry()
539 if (tab[i] != NULL) { in next_entry()
541 return (tab[i]); in next_entry()
553 if (where < table_size && tab != NULL && tab[where] != NULL) in get_entry()
554 return (tab[where]); in get_entry()
670 if (tab != NULL) { in add_entry()
676 tab[where] = new_entry(obj); in add_entry()
695 tab == NULL || tab[where] == NULL) in replace_entry()
702 free_entry(tab[where]); in replace_entry()
703 tab[where] = obj; in replace_entry()
720 tab == NULL || tab[where] == NULL) in delete_entry()
727 free_entry(tab[where]); in delete_entry()
728 tab[where] = NULL; /* very important to set it to null */ in delete_entry()
820 if (tab != 0) { in configure()
822 if (tab[i] != NULL) { in configure()
823 setEntryExp(i, tab[i], 1); in configure()
834 mapping.expire == NULL && table_size > 0 && tab != 0) { in configure()
862 if (tab[i] != NULL && mapping.expire[i] == 0) { in configure()
873 setEntryExp(i, tab[i], 1); in configure()
897 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0) in cacheValid()
915 if (obj == 0 || loc < 0 || loc >= table_size || tab == 0 || in dupEntry()
916 tab[loc] == 0) in dupEntry()
919 if (sameEntry(obj, tab[loc])) { in dupEntry()
920 setEntryExp(loc, tab[loc], 0); in dupEntry()
1062 ((entry_object **)enumArray.ptr)[index] = tab[loc]; in enumSetup()
1071 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0) in touchEntry()
1074 setEntryExp(loc, tab[loc], 0); in touchEntry()
1125 tab = NULL; in db_table()
1131 tab = NULL; in db_table()
1144 if (tab != NULL && i < table_size) in entry_exists_p()
1145 ret = tab[i] != NULL; in entry_exists_p()