Lines Matching refs:loc
881 /* Return TRUE if the entry at 'loc' hasn't expired */
883 db_table::cacheValid(entryp loc) {
891 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
893 else if (mapping.expire == 0 || mapping.expire[loc] >= now.tv_sec)
904 * If the supplied object has the same content as the one at 'loc',
908 db_table::dupEntry(entry_object *obj, entryp loc) {
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);
917 enumTouch(loc);
1026 db_table::enumTouch(entryp loc) {
1027 if (loc < 0 || loc >= table_size)
1032 ((entry_object **)enumArray.ptr)[loc] = 0;
1037 if (loc == ((entryp *)enumIndex.ptr)[i]) {
1047 * Add the entry indicated by 'loc' to the enumIndex array, at 'index'.
1050 db_table::enumSetup(entryp loc, long index) {
1051 if (enumMode.flag == 0 || loc < 0 || loc >= table_size ||
1055 ((entryp *)enumIndex.ptr)[index] = loc;
1056 ((entry_object **)enumArray.ptr)[index] = tab[loc];
1064 db_table::touchEntry(entryp loc) {
1065 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
1068 setEntryExp(loc, tab[loc], 0);
1070 enumTouch(loc);