Subversion Repositories Kolibri OS

Rev

Rev 8170 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef __KOLIBRI_HEAP_H_INCLUDED_
  2. #define __KOLIBRI_HEAP_H_INCLUDED_
  3.  
  4. #include "kolibri.h"
  5. #include "memheap.h"
  6.  
  7. // Kolibri memory heap interface.
  8.  
  9. namespace Kolibri   // All kolibri functions, types and data are nested in the (Kolibri) namespace.
  10. {
  11.         long _HeapInit()
  12.         {
  13.                 return MemoryHeap::mem_Init();
  14.         }
  15.  
  16.         void *Alloc(unsigned int size)
  17.         {
  18.                 return MemoryHeap::mem_Alloc(size);
  19.         }
  20.  
  21.         void *ReAlloc(void *mem, unsigned int size)
  22.         {
  23.                 return MemoryHeap::mem_ReAlloc(size, mem);
  24.         }
  25.  
  26.         void Free(void *mem)
  27.         {
  28.                 MemoryHeap::mem_Free(mem);
  29.         }
  30. }
  31.  
  32. #endif  // ndef __KOLIBRI_HEAP_H_INCLUDED_
  33.