38#define MAGICWORD (unsigned int) 0xfedabeeb
39#define MAGICWORDFREE (unsigned int) 0xdeadbeef
40#define MAGICBYTE ((char) 0xd7)
69 (*mdp -> abortfunc)();
75 struct hdr *
hdr = ((
struct hdr *) ptr) - 1;
81 mdp -> mfree_hook =
NULL;
93 mdp -> mmalloc_hook =
NULL;
94 nbytes =
sizeof (
struct hdr) +
size + 1;
109 struct hdr *
hdr = ((
struct hdr *) ptr) - 1;
115 mdp -> mfree_hook =
NULL;
116 mdp -> mmalloc_hook =
NULL;
117 mdp -> mrealloc_hook =
NULL;
118 nbytes =
sizeof (
struct hdr) +
size + 1;
165 mdp -> abortfunc = (func !=
NULL ? func : abort);
173 (mdp -> mfree_hook !=
NULL))
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
void mfree(PTR md, PTR ptr)
PTR mmalloc(PTR md, size_t size)
static void mfree_check(PTR md, PTR ptr)
static PTR mmalloc_check(PTR md, size_t size)
int mmcheck(PTR md, void(*func) PARAMS((void)))
static PTR mrealloc_check(PTR md, PTR ptr, size_t size)
void mmfree_fun_t PARAMS((PTR, PTR))
static void checkhdr(struct mdesc *mdp, const struct hdr *hdr)
#define MMALLOC_MMCHECK_USED
#define MMALLOC_INITIALIZED
PTR mrealloc(PTR md, PTR ptr, size_t size)
char magic[MMALLOC_MAGIC_SIZE]