2010-12-09 20:57:35 +00:00
|
|
|
#ifndef _MEM_ALLOCATE_H
|
|
|
|
#define _MEM_ALLOCATE_H
|
|
|
|
|
|
|
|
#include <malloc.h>
|
2010-12-12 16:31:13 +00:00
|
|
|
#include "memory/mem2.h"
|
2010-12-09 20:57:35 +00:00
|
|
|
|
2010-12-12 16:31:13 +00:00
|
|
|
extern __inline__ void* mem_alloc (size_t size) {
|
|
|
|
return MEM2_alloc(size);
|
2010-12-09 20:57:35 +00:00
|
|
|
}
|
|
|
|
|
2010-12-12 16:31:13 +00:00
|
|
|
extern __inline__ void* mem_realloc (void *p, size_t size) {
|
|
|
|
return MEM2_realloc(p, size);
|
2010-12-09 20:57:35 +00:00
|
|
|
}
|
|
|
|
|
2010-12-12 16:31:13 +00:00
|
|
|
extern __inline__ void* mem_align (size_t a, size_t size) {
|
|
|
|
return MEM2_alloc(size);
|
2010-12-09 20:57:35 +00:00
|
|
|
}
|
|
|
|
|
2010-12-12 16:31:13 +00:00
|
|
|
extern __inline__ void mem_free (void* mem) {
|
|
|
|
MEM2_free(mem);
|
2010-12-09 20:57:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _MEM_ALLOCATE_H */
|