mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 04:32:19 +02:00
* Reactivated heap management for GBA
git-svn-id: trunk@4529 -
This commit is contained in:
parent
ae43d8658a
commit
19d597f425
@ -734,7 +734,6 @@ end;
|
||||
Grow Heap
|
||||
*****************************************************************************}
|
||||
|
||||
{$ifndef gba}
|
||||
function alloc_oschunk(chunkindex, size: ptrint):pointer;
|
||||
var
|
||||
pmcfirst,
|
||||
@ -862,16 +861,6 @@ begin
|
||||
result:=pmcv;
|
||||
end;
|
||||
end;
|
||||
{$else gba}
|
||||
function alloc_oschunk(chunkindex, size: ptrint):pointer;
|
||||
begin
|
||||
alloc_oschunk := nil;
|
||||
if not ReturnNilIfGrowHeapFails then
|
||||
runerror(203);
|
||||
|
||||
end;
|
||||
{$endif gba}
|
||||
|
||||
|
||||
{*****************************************************************************
|
||||
SysGetMem
|
||||
@ -1300,7 +1289,7 @@ end;
|
||||
{*****************************************************************************
|
||||
InitHeap
|
||||
*****************************************************************************}
|
||||
|
||||
{$ifndef gba}
|
||||
{ This function will initialize the Heap manager and need to be called from
|
||||
the initialization of the system unit }
|
||||
procedure InitHeap;
|
||||
@ -1312,7 +1301,7 @@ begin
|
||||
freeoslistcount := 0;
|
||||
fillchar(internal_status,sizeof(internal_status),0);
|
||||
end;
|
||||
|
||||
{$endif gba}
|
||||
|
||||
procedure FinalizeHeap;
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user