home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / newlibs / cclib.lzh / alloc.h < prev    next >
C/C++ Source or Header  |  1989-09-25  |  466b  |  38 lines

  1. #ifndef ALLOC_H
  2. #define ALLOC_H 1
  3.  
  4. #ifndef STDLIST_H
  5. #include "stdlist.h"
  6. #endif
  7.  
  8. typedef long ALIGN;   /* forces long word alignment */
  9.  
  10. union header
  11. {
  12. struct
  13.    {
  14.    union header *ptr;
  15.    unsigned long size;
  16.    unsigned short type;
  17.    unsigned short spare;
  18.    } s;
  19. ALIGN x;
  20. };
  21.  
  22. typedef union header HEADER;
  23.  
  24. #define REGS register
  25. #define NULL 0L
  26. #define NALLOC 128L
  27. #define CHIMP 1
  28. #define FAST 2
  29.  
  30. typedef struct
  31. {
  32. _node n;
  33. void *ptr;
  34. long size;
  35. } MemBlk;
  36.  
  37. #endif
  38.