+ codeptruinttype/codeptrsinttype that has the same size as

voidcodepointertype

git-svn-id: trunk@32470 -
This commit is contained in:
Jonas Maebe 2015-11-22 11:49:32 +00:00
parent e90af5d7c0
commit 2504a0ce6c
2 changed files with 22 additions and 0 deletions

View File

@ -163,6 +163,25 @@ implementation
voidcodepointertype:=voidpointertype;
voidstackpointertype:=voidpointertype;
{$endif i8086}
case voidcodepointertype.size of
2:
begin
codeptruinttype:=u16inttype;
codeptrsinttype:=s16inttype;
end;
4:
begin
codeptruinttype:=u32inttype;
codeptrsinttype:=s32inttype;
end;
8:
begin
codeptruinttype:=u64inttype;
codeptrsinttype:=s64inttype;
end;
else
Internalerror(2015112106);
end;
end;
procedure create_intern_types;

View File

@ -1065,6 +1065,9 @@ interface
{ unsigned and signed ord type with the same size as a pointer }
ptruinttype,
ptrsinttype,
{ unsigned and signed ord type with the same size as a codepointer }
codeptruinttype,
codeptrsinttype,
{ several types to simulate more or less C++ objects for GDB }
vmttype,
vmtarraytype,