wsh/
wsh/binsrc/
wsh/docs/help/
wsh/docs/old/
wsh/etc/
wsh/src/util/
/* This software is written and copyright Sam Lantinga: mem.c and mem.h */
/* Now for some memory functions.  Here I am baby.. Come and take
   me, take me as I am...  La la la */

#define CLEANMEM	/* Define this if you want new memory zeroed out. */
#define MEMSIZ	BUFSIZ	/* The size of each block allocated */
#define MAXMEM	12	/* The most blocks that can be allocated at once */
#define GRAIN	16	/* This should be an optimum size for the requests */
#define GRAINS	(MEMSIZ/GRAIN)	/* The number of grains in a block */

extern int debugmem;			/* Memory debugging level */

extern void zerout(), zcopy();		/* bzero() and bcopy() */
extern void set_mtrace();		/* Enable memory tracing */
extern void print_mtrace();		/* Print the memory trace */
extern void mem_stat();			/* Print out the whole listing
					   of allocated memory. (HUGE) */
extern char *myalloc();			/* wrapper around malloc() */
extern int   myfree();			/* free() for myalloc() */