Changeset 64 for branches/Transpascal/Project/System.pas
- Timestamp:
- Oct 15, 2010, 2:13:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Project/System.pas
r63 r64 3 3 interface 4 4 5 const6 MemoryManagerSizeType: TType = Integer;7 8 5 type 9 6 TType = internal; … … 25 22 TObject = class; 26 23 24 const 25 MemoryManagerSizeType: TType = Integer; 26 27 type 28 TMemoryManager = record 29 function Alloc(Size: Integer): Pointer; 30 function Free(P: Pointer): Integer; 31 function Realloc(P: Pointer; Size: Integer): Pointer; 32 end; 27 33 PMemoryManager = ^TMemoryManager; 28 TMemoryManager<TSizeType: Ordinal> = record29 GetMem: function(Size: TSizeType): Pointer;30 FreeMem: function(P: Pointer): TSizeType;31 ReallocMem: function(P: Pointer; Size: TSizeType): Pointer;32 end;33 TSystemMemoryManager = TMemoryManager<MemoryManagerSizeType>;34 34 35 35 TSystem = record
Note:
See TracChangeset
for help on using the changeset viewer.