/* tmalloc.h (emx+gcc) */

/* This structure immediately precedes the block pointed to by
   _tmalloc()'s return value. */

struct tmh
{
  void *parent;
  size_t size;
};

#define TM_OVERHEAD     (sizeof (struct tmh))
#define TM_USER(p)      ((void *)((char *)(p) + TM_OVERHEAD))
#define TM_HEADER(p)    ((struct tmh *)((char *)(p) - TM_OVERHEAD))
