scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

malloc.h (300B)


      1 #include <stdlib.h>
      2 
      3 /* minimum amount of required units */
      4 #define NALLOC 10000
      5 
      6 typedef union header Header;
      7 union header {
      8 	struct hdr {
      9 		Header *next;
     10 		size_t size;
     11 	} h;
     12 	/* most restrictive type fixes the union size for alignment */
     13 	_ALIGNTYPE most;
     14 };
     15 
     16 extern void *_prevchunk(Header *hp);