(sctcache, bestp) [!DO_EFF_MEM_CHECKING]: cache isn't used, don't

define it.
This commit is contained in:
Markus Armbruster 2004-03-01 14:16:31 +00:00
parent 21dd4cfc0f
commit 69d06bad46

View file

@ -66,14 +66,18 @@
#define BP_ASHASHSIZE 128 /* A* queue hash table size */ #define BP_ASHASHSIZE 128 /* A* queue hash table size */
#define BP_NEIGHBORS 6 /* max number of neighbors */ #define BP_NEIGHBORS 6 /* max number of neighbors */
#ifdef DO_EFF_MEM_CHECKING
struct sctcache { struct sctcache {
coord x, y; coord x, y;
struct sctstr *sp; struct sctstr *sp;
struct sctcache *next; struct sctcache *next;
}; };
#endif /* DO_EFF_MEM_CHECKING */
struct bestp { struct bestp {
#ifdef DO_EFF_MEM_CHECKING
struct sctcache *sctcachetab[BP_SCTHASHSIZE]; struct sctcache *sctcachetab[BP_SCTHASHSIZE];
#endif
int sctcache_hits; int sctcache_hits;
int sctcache_misses; int sctcache_misses;
int bp_mobtype; int bp_mobtype;