Shortint = -128..127; SmallInt = -32768..32767; Longint = $80000000..$7fffffff; byte = 0..255; word = 0..65535; dword = longword; cardinal = longword; Integer = smallint; |
StrLenInt = LongInt; ValSInt = Longint; ValUInt = Cardinal; ValReal = Extended; |
Real48 = Array[0..5] of byte; |
The following character types are defined for Delphi compatibility:
TAnsiChar = Char; AnsiChar = TAnsiChar; |
PChar = ^char; pPChar = ^PChar; PAnsiChar = PChar; PQWord = ^QWord; PInt64 = ^Int64; pshortstring = ^shortstring; plongstring = ^longstring; pansistring = ^ansistring; pwidestring = ^widestring; pextended = ^extended; ppointer = ^pointer; |
jmp_buf = record ebx,esi,edi : Longint; bp,sp,pc : Pointer; end; PJmp_buf = ^jmp_buf; |
tmsgstrtable = record name : pshortstring; method : pointer; end; pmsgstrtable = ^tmsgstrtable; tstringmessagetable = record count : dword; msgstrtable : array[0..0] of tmsgstrtable; end; pstringmessagetable = ^tstringmessagetable; |
The base class for all classes is defined as:
Type TObject = Class Public constructor create; destructor destroy;virtual; class function newinstance : tobject;virtual; procedure freeinstance;virtual; function safecallexception(exceptobject : tobject; exceptaddr : pointer) : longint;virtual; procedure defaulthandler(var message);virtual; procedure free; class function initinstance(instance : pointer) : tobject; procedure cleanupinstance; function classtype : tclass; class function classinfo : pointer; class function classname : shortstring; class function classnameis(const name : string) : boolean; class function classparent : tclass; class function instancesize : longint; class function inheritsfrom(aclass : tclass) : boolean; class function inheritsfrom(aclass : tclass) : boolean; class function stringmessagetable : pstringmessagetable; procedure dispatch(var message); procedure dispatchstr(var message); class function methodaddress(const name : shortstring) : pointer; class function methodname(address : pointer) : shortstring; function fieldaddress(const name : shortstring) : pointer; procedure AfterConstruction;virtual; procedure BeforeDestruction;virtual; procedure DefaultHandlerStr(var message);virtual; end; TClass = Class Of TObject; PClass = ^TClass; |
TExceptProc = Procedure (Obj : TObject; Addr,Frame: Pointer); |
The TVarRec type is used to access the elements passed in a Array of Const argument to a function or procedure:
Type PVarRec = ^TVarRec; TVarRec = record case VType : Longint of vtInteger : (VInteger: Longint); vtBoolean : (VBoolean: Boolean); vtChar : (VChar: Char); vtExtended : (VExtended: PExtended); vtString : (VString: PShortString); vtPointer : (VPointer: Pointer); vtPChar : (VPChar: PChar); vtObject : (VObject: TObject); vtClass : (VClass: TClass); vtAnsiString : (VAnsiString: Pointer); vtWideString : (VWideString: Pointer); vtInt64 : (VInt64: PInt64); end; |
PMemoryManager = ^TMemoryManager; TMemoryManager = record Getmem : Function(Size:Longint):Pointer; Freemem : Function(var p:pointer):Longint; FreememSize : Function(var p:pointer;Size:Longint):Longint; AllocMem : Function(Size:longint):Pointer; ReAllocMem : Function(var p:pointer;Size:longint):Pointer; MemSize : function(p:pointer):Longint; MemAvail : Function:Longint; MaxAvail : Function:Longint; HeapSize : Function:Longint; end; |