mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-07 19:27:12 +01:00
rtl:
- 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:
parent
714511a4d9
commit
1c86a9482b
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user