- add tkRecord to TTypeData (field and type names are taken from Delphi help)
  - add tkProcedure as alias to tkProcVar

git-svn-id: trunk@24442 -
This commit is contained in:
paul 2013-05-05 04:09:31 +00:00
parent 714511a4d9
commit 1c86a9482b

View File

@ -152,6 +152,12 @@ unit typinfo;
UnitName : ShortString
// here the properties follow as array of TPropInfo
);
tkRecord:
(
RecSize: Integer;
ManagedFldCount: Integer;
{ManagedFields: array[1..ManagedFldCount] of TManagedField}
);
tkHelper:
(HelperParent : PTypeInfo;
ExtendedInfo : PTypeInfo;
@ -213,6 +219,14 @@ unit typinfo;
end;
// unsed, just for completeness
TManagedField =
{$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
packed
{$endif FPC_REQUIRES_PROPER_ALIGNMENT}
record
TypeRef: PTypeInfo;
FldOffset: Integer;
end;
TPropData =
{$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
packed
@ -249,6 +263,7 @@ unit typinfo;
TPropList = array[0..65535] of PPropInfo;
const
tkProcedure = tkProcVar; // for compatibility with Delphi
tkAny = [Low(TTypeKind)..High(TTypeKind)];
tkMethods = [tkMethod];
tkProperties = tkAny-tkMethods-[tkUnknown];