summaryrefslogtreecommitdiff
path: root/fpcsrc/rtl/win/fpcmemdll.pp
blob: 503b6e9f157284b3324e4631fdde41616d2df6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
    This file is part of the Free Pascal run time library.
    Copyright (c) 2006 by the Free Pascal development team.

    Shared memory manager

    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.

 **********************************************************************}
{$mode objfpc}
library fpcmemdll;

    Function  SysGetmem(Size:ptrint):Pointer;
      begin
        Result:=System.SysGetmem(Size);
      end;


    Function  SysFreemem(p:pointer):ptrint;
      begin
        Result:=System.SysFreemem(p);
      end;


    Function  SysFreememSize(p:pointer;Size:ptrint):ptrint;
      begin
        Result:=System.SysFreememSize(p,Size);
      end;


    Function  SysAllocMem(size:ptrint):Pointer;
      begin
        Result:=System.SysAllocMem(Size);
      end;


    Function  SysReAllocMem(var p:pointer;size:ptrint):Pointer;
      begin
        Result:=System.SysReallocMem(p,Size);
      end;


    Function  SysMemSize(p:pointer):ptrint;
      begin
        Result:=System.SysMemSize(p);
      end;


    function  SysGetHeapStatus:THeapStatus;
      begin
        Result:=System.SysGetHeapStatus;
      end;


    function  SysGetFPCHeapStatus:TFPCHeapStatus;
      begin
        Result:=System.SysGetFPCHeapStatus;
      end;


    exports
      SysGetmem,
      SysFreemem,
      SysFreememSize,
      SysAllocMem,
      SysReAllocMem,
      SysMemSize,
      SysGetHeapStatus,
      SysGetFPCHeapStatus;

begin
end.