fpc/rtl/palmos/sysheap.inc
Károly Balogh 790c1f87f1 palmos: implemented sysosalloc/free for the heap
git-svn-id: trunk@37248 -
2017-09-18 11:14:48 +00:00

33 lines
929 B
PHP

{
This file is part of the Free Pascal run time library.
Copyright (c) 2017 by Free Pascal development team
Low level memory functions
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
****************************************************************************}
function SysOSAlloc(size: ptruint): pointer;
begin
SysOSAlloc:=MemPtrNew(size);
end;
{$define HAS_SYSOSFREE}
procedure SysOSFree(p: pointer; size: ptruint);
begin
if (p <> nil) then
MemPtrFree(p);
end;