* TClassData also needs alignment dummies

git-svn-id: trunk@42807 -
This commit is contained in:
svenbarth 2019-08-24 23:08:33 +00:00
parent f740fc4228
commit 2dc771b7ba

View File

@ -578,18 +578,30 @@ unit TypInfo;
private private
function GetUnitName: ShortString; inline; function GetUnitName: ShortString; inline;
function GetPropertyTable: PPropData; inline; function GetPropertyTable: PPropData; inline;
public
property UnitName: ShortString read GetUnitName;
property PropertyTable: PPropData read GetPropertyTable;
public public
{$ifdef PROVIDE_ATTR_TABLE} {$ifdef PROVIDE_ATTR_TABLE}
AttributeTable : PAttributeTable; AttributeTable : PAttributeTable;
{$endif} {$endif}
ClassType : TClass; case TTypeKind of
Parent : PPTypeInfo; tkClass: (
PropCount : SmallInt; ClassType : TClass;
property UnitName: ShortString read GetUnitName; Parent : PPTypeInfo;
property PropertyTable: PPropData read GetPropertyTable; PropCount : SmallInt;
private UnitNameField : ShortString;
UnitNameField : ShortString; { PropertyTable: TPropData }
{ PropertyTable: TPropData } );
{ include for proper alignment }
tkInt64: (
dummy: Int64;
);
{$ifndef FPUNONE}
tkFloat: (
FloatType : TFloatType
);
{$endif}
end; end;
PTypeData = ^TTypeData; PTypeData = ^TTypeData;