Ignore:
Timestamp:
Oct 15, 2010, 10:04:55 AM (14 years ago)
Author:
george
Message:
  • Modified: Compiled code syntax highlighting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Project/System.pas

    r60 r63  
    33interface
    44
     5const
     6  MemoryManagerSizeType: TType = Integer;
     7 
    58type
     9  TType = internal;
    610  Void = internal;
    711  Byte = internal;
     
    1620  Char = internal;
    1721  String = array of Char;
     22  Pointer = ^Void;
     23  Ordinal = (Byte, ShortInt, Word, SmallInt, Cardinal, DWord, Integer, QWord, Int64, Char);
     24  Float = (Single, Double, Extended)
     25  TObject = class;
    1826
     27  PMemoryManager = ^TMemoryManager;
     28  TMemoryManager<TSizeType: Ordinal> = record
     29    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 
     35  TSystem = record
     36    MemoryManager: TMemoryManager;
     37  end;
    1938
    2039procedure Exit; internal;
     
    2342procedure WriteLn; internal;
    2443
     44 
    2545implementation
    2646
     47uses
     48  MemoryManager;
     49
     50initialization
     51
     52finalization
    2753
    2854end.
Note: See TracChangeset for help on using the changeset viewer.