Lines Matching refs:tab
314 tab = NULL; in db_table()
348 if (tab != NULL) { in reset()
352 if (tab[i]) { in reset()
353 free_entry(tab[i]); in reset()
359 delete tab; in reset()
361 tab = NULL; in reset()
414 (void) memcpy(&newEnumArray[oldSize], &tab[oldSize], in allocateEnumArray()
430 entry_object_p *oldtab = tab; in grow()
447 if ((tab = (entry_object_p*) in grow()
450 tab = oldtab; // restore previous table info in grow()
467 free(tab); in grow()
468 tab = oldtab; in grow()
478 tab[i] = oldtab[i]; in grow()
486 free(tab); in grow()
487 tab = oldtab; in grow()
506 if (count == 0 || tab == NULL) { /* empty table */ in first_entry()
513 if (tab[i] != NULL) { in first_entry()
515 return (tab[i]); in first_entry()
533 if (prev >= table_size || tab == NULL || tab[prev] == NULL) in next_entry()
536 if (tab[i] != NULL) { in next_entry()
538 return (tab[i]); in next_entry()
550 if (where < table_size && tab != NULL && tab[where] != NULL) in get_entry()
551 return (tab[where]); in get_entry()
667 if (tab != NULL) { in add_entry()
673 tab[where] = new_entry(obj); in add_entry()
692 tab == NULL || tab[where] == NULL) in replace_entry()
699 free_entry(tab[where]); in replace_entry()
700 tab[where] = obj; in replace_entry()
717 tab == NULL || tab[where] == NULL) in delete_entry()
724 free_entry(tab[where]); in delete_entry()
725 tab[where] = NULL; /* very important to set it to null */ in delete_entry()
817 if (tab != 0) { in configure()
819 if (tab[i] != NULL) { in configure()
820 setEntryExp(i, tab[i], 1); in configure()
831 mapping.expire == NULL && table_size > 0 && tab != 0) { in configure()
859 if (tab[i] != NULL && mapping.expire[i] == 0) { in configure()
870 setEntryExp(i, tab[i], 1); in configure()
894 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0) in cacheValid()
912 if (obj == 0 || loc < 0 || loc >= table_size || tab == 0 || in dupEntry()
913 tab[loc] == 0) in dupEntry()
916 if (sameEntry(obj, tab[loc])) { in dupEntry()
917 setEntryExp(loc, tab[loc], 0); in dupEntry()
1059 ((entry_object **)enumArray.ptr)[index] = tab[loc]; in enumSetup()
1068 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0) in touchEntry()
1071 setEntryExp(loc, tab[loc], 0); in touchEntry()
1121 tab = NULL; in db_table()
1127 tab = NULL; in db_table()
1140 if (tab != NULL && i < table_size) in entry_exists_p()
1141 ret = tab[i] != NULL; in entry_exists_p()