+ added System.CodePointer - a pointer that is able to hold a procedure address in the current memory model

git-svn-id: trunk@24839 -
This commit is contained in:
nickysn 2013-06-09 17:23:31 +00:00
parent 0e4e329228
commit 3e1e5cb7e8

View File

@ -318,6 +318,7 @@ Type
ValUInt = qword;
NativeInt = PtrInt;
NativeUint = PtrUint;
CodePointer = Pointer;
{$endif CPU64}
{$ifdef CPU32}
@ -329,6 +330,7 @@ Type
ValUInt = Cardinal;
NativeInt = PtrInt;
NativeUint = PtrUint;
CodePointer = Pointer;
{$endif CPU32}
{$ifdef CPU16}
@ -341,6 +343,13 @@ Type
PtrInt = Integer;
PtrUInt = Word;
{$endif}
{$if defined(FPC_X86_CODE_FAR)}
CodePointer = FarPointer;
{$elseif defined(FPC_X86_CODE_NEAR)}
CodePointer = NearPointer;
{$else}
CodePointer = Pointer;
{$endif}
ValSInt = Integer;
ValUInt = Word;
NativeInt = Integer;