Lines Matching refs:tab
311 tab = NULL;
345 if (tab != NULL) {
349 if (tab[i]) {
350 free_entry(tab[i]);
356 delete tab;
358 tab = NULL;
411 (void) memcpy(&newEnumArray[oldSize], &tab[oldSize],
427 entry_object_p *oldtab = tab;
443 // if ((tab = new entry_object_p[table_size]) == NULL)
444 if ((tab = (entry_object_p*)
447 tab = oldtab; // restore previous table info
464 free(tab);
465 tab = oldtab;
475 tab[i] = oldtab[i];
483 free(tab);
484 tab = oldtab;
503 if (count == 0 || tab == NULL) { /* empty table */
510 if (tab[i] != NULL) {
512 return (tab[i]);
530 if (prev >= table_size || tab == NULL || tab[prev] == NULL)
533 if (tab[i] != NULL) {
535 return (tab[i]);
547 if (where < table_size && tab != NULL && tab[where] != NULL)
548 return (tab[where]);
664 if (tab != NULL) {
670 tab[where] = new_entry(obj);
689 tab == NULL || tab[where] == NULL)
696 free_entry(tab[where]);
697 tab[where] = obj;
714 tab == NULL || tab[where] == NULL)
721 free_entry(tab[where]);
722 tab[where] = NULL; /* very important to set it to null */
814 if (tab != 0) {
816 if (tab[i] != NULL) {
817 setEntryExp(i, tab[i], 1);
828 mapping.expire == NULL && table_size > 0 && tab != 0) {
856 if (tab[i] != NULL && mapping.expire[i] == 0) {
867 setEntryExp(i, tab[i], 1);
891 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
909 if (obj == 0 || loc < 0 || loc >= table_size || tab == 0 ||
910 tab[loc] == 0)
913 if (sameEntry(obj, tab[loc])) {
914 setEntryExp(loc, tab[loc], 0);
926 * starts out the same as 'tab'. Any update activity (add, remove, replace,
941 * whole 'tab' array for simple queries (which we expect usually will
945 * to specify which 'tab' entries we're interested in.
1056 ((entry_object **)enumArray.ptr)[index] = tab[loc];
1065 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
1068 setEntryExp(loc, tab[loc], 0);
1118 tab = NULL;
1124 tab = NULL;
1137 if (tab != NULL && i < table_size)
1138 ret = tab[i] != NULL;