Lines Matching refs:tab

316 	tab = NULL;
350 if (tab != NULL) {
354 if (tab[i]) {
355 free_entry(tab[i]);
361 delete tab;
363 tab = NULL;
416 (void) memcpy(&newEnumArray[oldSize], &tab[oldSize],
432 entry_object_p *oldtab = tab;
448 // if ((tab = new entry_object_p[table_size]) == NULL)
449 if ((tab = (entry_object_p*)
452 tab = oldtab; // restore previous table info
469 free(tab);
470 tab = oldtab;
480 tab[i] = oldtab[i];
488 free(tab);
489 tab = oldtab;
508 if (count == 0 || tab == NULL) { /* empty table */
515 if (tab[i] != NULL) {
517 return (tab[i]);
535 if (prev >= table_size || tab == NULL || tab[prev] == NULL)
538 if (tab[i] != NULL) {
540 return (tab[i]);
552 if (where < table_size && tab != NULL && tab[where] != NULL)
553 return (tab[where]);
669 if (tab != NULL) {
675 tab[where] = new_entry(obj);
694 tab == NULL || tab[where] == NULL)
701 free_entry(tab[where]);
702 tab[where] = obj;
719 tab == NULL || tab[where] == NULL)
726 free_entry(tab[where]);
727 tab[where] = NULL; /* very important to set it to null */
819 if (tab != 0) {
821 if (tab[i] != NULL) {
822 setEntryExp(i, tab[i], 1);
833 mapping.expire == NULL && table_size > 0 && tab != 0) {
861 if (tab[i] != NULL && mapping.expire[i] == 0) {
872 setEntryExp(i, tab[i], 1);
896 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
914 if (obj == 0 || loc < 0 || loc >= table_size || tab == 0 ||
915 tab[loc] == 0)
918 if (sameEntry(obj, tab[loc])) {
919 setEntryExp(loc, tab[loc], 0);
931 * starts out the same as 'tab'. Any update activity (add, remove, replace,
946 * whole 'tab' array for simple queries (which we expect usually will
950 * to specify which 'tab' entries we're interested in.
1061 ((entry_object **)enumArray.ptr)[index] = tab[loc];
1070 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
1073 setEntryExp(loc, tab[loc], 0);
1123 tab = NULL;
1129 tab = NULL;
1142 if (tab != NULL && i < table_size)
1143 ret = tab[i] != NULL;