2010-09-08 05:24:12 +00:00
|
|
|
/*
|
|
|
|
* stdlib.h replacement, so that we can replace malloc functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef unsigned int size_t;
|
|
|
|
|
2010-11-29 23:40:01 +00:00
|
|
|
#include "ch.h"
|
|
|
|
#include "chheap.h"
|
|
|
|
#define malloc(size) chHeapAlloc (NULL, size)
|
|
|
|
#define free(p) chHeapFree (p)
|