the next user can't use the cache, it gets automatically zapped then.
Remove.
extern int ef_write(int, int, void *);
extern int ef_extend(int, int);
extern int ef_ensure_space(int, int, int);
-extern void ef_zapcache(int);
extern int ef_nelem(int);
extern int ef_flags(int);
extern int ef_byname(char *);
return i == count;
}
-/*
- * Mark the cache for the file containing objects of type 'type' as unused.
- */
-void
-ef_zapcache(int type)
-{
- struct empfile *ep = &empfile[type];
- if ((ep->flags & EFF_MEM) == 0) {
- ep->cids = 0;
- ep->baseid = -1;
- }
-}
-
struct castr *
ef_cadef(int type)
{
np->read = ef_read;
np->flags = ef_flags(type);
xysize_range(&np->range);
- ef_zapcache(type);
}
void
/* It did the wrong thing for small, hitech worlds. */
xysize_range(&np->range);
#endif
- ef_zapcache(type);
}
void
np->dist = 0;
np->read = ef_read;
np->flags = ef_flags(type);
- ef_zapcache(type);
}
void
np->read = ef_read;
np->flags = ef_flags(type);
xysize_range(&np->range);
- ef_zapcache(type);
}
void
np->read = ef_read;
np->flags = ef_flags(type);
xysize_range(&np->range);
- ef_zapcache(type);
}
void
{
np->cur = -1;
np->index = -1;
- ef_zapcache(np->type);
}
int
for (i = 0; i < len; i++)
np->list[i] = list[i];
np->size = len;
- ef_zapcache(type);
return 1;
}
np->dx = -1;
np->dy = 0;
xysize_range(&np->range);
- ef_zapcache(EF_SECTOR);
}
void
np->dx = -1;
np->dy = 0;
np->id = -1;
- ef_zapcache(EF_SECTOR);
}
void
/* It was not doing the right thing when the world was small */
xysize_range(&np->range);
#endif
- ef_zapcache(EF_SECTOR);
}
void