md.h

MudOS_0.9.18/src/md.h · 407 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

/* used by md.c (the malloc debug module) */

typedef struct node_s {
	int size;
	struct node_s *next;
#ifdef DEBUGMALLOC_EXTENSIONS
	int id;
	int tag;
	char *desc;
#endif
} node_t;

#define TABLESIZE 20357  /* 20357 is prime */

#define PTR(x) ((void *)(x + 1))

extern int malloc_mask;

void MDinit();
void MDmalloc PROT((node_t *, int, int, char *));
int MDfree PROT((void *));

#define MAX_CATEGORY 130

Site Stats

Snippets: 1791
Codebases: 571