scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

malloc.h (297B)


      1 #include <stdlib.h>
      2 
      3 /* minimum amount of required units */
      4 #define NALLOC 16
      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);