Subversion Repositories Kolibri OS

Rev

Rev 8184 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8184 Rev 8199
Line 1... Line 1...
1
#ifndef __KOLIBRI_HEAP_H_INCLUDED_
1
#ifndef __KOLIBRI_HEAP_H_INCLUDED_
2
#define __KOLIBRI_HEAP_H_INCLUDED_
2
#define __KOLIBRI_HEAP_H_INCLUDED_
Line 3... Line 3...
3
 
3
 
4
#include "kolibri.h"
-
 
Line 5... Line 4...
5
#include "memheap.h"
4
#include "kolibri.h"
Line 6... Line 5...
6
 
5
 
7
// Kolibri memory heap interface.
6
// Kolibri memory heap interface.
8
 
7
 
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();
8
namespace Kolibri   // All kolibri functions, types and data are nested in the (Kolibri) namespace.
14
	}
-
 
15
 
-
 
16
	void *Alloc(unsigned int size)
-
 
17
	{
-
 
18
		return MemoryHeap::mem_Alloc(size);
9
{
19
	}
-
 
20
 
-
 
21
	void *ReAlloc(void *mem, unsigned int size)
-
 
22
	{
-
 
23
		return MemoryHeap::mem_ReAlloc(size, mem);
10
	long HeapInit();
24
	}
-
 
25
 
-
 
26
	void Free(void *mem)
-
 
27
	{
11
	void *Alloc(unsigned long int size);
Line 28... Line 12...
28
		MemoryHeap::mem_Free(mem);
12
	void *ReAlloc(void *mem, unsigned long int size);