mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 02:31:12 +02:00
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2005 by Free Pascal development team
|
|
|
|
Low level memory functions
|
|
|
|
Heap functions unit for Nintendo DS
|
|
Copyright (c) 2006 by Francesco Lombardi
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
**********************************************************************}
|
|
|
|
{*****************************************************************************
|
|
OS Memory allocation / deallocation
|
|
****************************************************************************}
|
|
|
|
var
|
|
heap_start: longint; external name '_end';
|
|
|
|
function SysOSAlloc(size: ptruint): pointer;
|
|
begin
|
|
result := @heap_start;
|
|
end;
|
|
|
|
{ $define HAS_SYSOSFREE}
|
|
|
|
procedure SysOSFree(p: pointer; size: ptruint);
|
|
begin
|
|
|
|
end;
|