home *** CD-ROM | disk | FTP | other *** search
- #ifndef ALLOC_H
- #define ALLOC_H 1
-
- #ifndef STDLIST_H
- #include "stdlist.h"
- #endif
-
- typedef long ALIGN; /* forces long word alignment */
-
- union header
- {
- struct
- {
- union header *ptr;
- unsigned long size;
- unsigned short type;
- unsigned short spare;
- } s;
- ALIGN x;
- };
-
- typedef union header HEADER;
-
- #define REGS register
- #define NULL 0L
- #define NALLOC 128L
- #define CHIMP 1
- #define FAST 2
-
- typedef struct
- {
- _node n;
- void *ptr;
- long size;
- } MemBlk;
-
- #endif
-