Lines Matching defs:loc
886 /* Return TRUE if the entry at 'loc' hasn't expired */
888 db_table::cacheValid(entryp loc) {
896 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
898 else if (mapping.expire == 0 || mapping.expire[loc] >= now.tv_sec)
909 * If the supplied object has the same content as the one at 'loc',
913 db_table::dupEntry(entry_object *obj, entryp loc) {
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);
922 enumTouch(loc);
1031 db_table::enumTouch(entryp loc) {
1032 if (loc < 0 || loc >= table_size)
1037 ((entry_object **)enumArray.ptr)[loc] = 0;
1042 if (loc == ((entryp *)enumIndex.ptr)[i]) {
1052 * Add the entry indicated by 'loc' to the enumIndex array, at 'index'.
1055 db_table::enumSetup(entryp loc, long index) {
1056 if (enumMode.flag == 0 || loc < 0 || loc >= table_size ||
1060 ((entryp *)enumIndex.ptr)[index] = loc;
1061 ((entry_object **)enumArray.ptr)[index] = tab[loc];
1069 db_table::touchEntry(entryp loc) {
1070 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
1073 setEntryExp(loc, tab[loc], 0);
1075 enumTouch(loc);