www.pudn.com > iccavr_lib.rar > newheap.c, change:2002-12-29,size:245b


#include <_alloc.h> 
 
void _NewHeap(void *start, void *end) 
	{ 
	CELL_HDR *new = start; 
 
	new->next = __FreeList; 
	__FreeList = new; 
 
	new->size = NEW_SIZE(start, end); 
	new->EndAddr = end; 
#ifdef DEBUG 
	new->InUse = 0; 
#endif 
	}