mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 13:29:19 +02:00
rtl: add TVmtFieldTable, TVmtFieldEntry to typinfo unit since delphi has that declarations too
git-svn-id: trunk@14754 -
This commit is contained in:
parent
cc23c7c744
commit
d3820bfa58
@ -78,6 +78,30 @@ unit typinfo;
|
||||
TTypeKinds = set of TTypeKind;
|
||||
ShortStringBase = string[255];
|
||||
|
||||
PVmtFieldEntry = ^TVmtFieldEntry;
|
||||
TVmtFieldEntry =
|
||||
{$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
|
||||
packed
|
||||
{$endif FPC_REQUIRES_PROPER_ALIGNMENT}
|
||||
record
|
||||
FieldOffset: PtrUInt;
|
||||
TypeIndex: Word;
|
||||
Name: ShortString;
|
||||
end;
|
||||
|
||||
PVmtFieldTable = ^TVmtFieldTable;
|
||||
TVmtFieldTable =
|
||||
{$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
|
||||
packed
|
||||
{$endif FPC_REQUIRES_PROPER_ALIGNMENT}
|
||||
record
|
||||
Count: Word;
|
||||
ClassTab: Pointer;
|
||||
{ should be array[Word] of TFieldInfo; but
|
||||
Elements have variant size! force at least proper alignment }
|
||||
Fields: array[0..0] of TVmtFieldEntry
|
||||
end;
|
||||
|
||||
{$PACKRECORDS 1}
|
||||
TTypeInfo = record
|
||||
Kind : TTypeKind;
|
||||
|
Loading…
Reference in New Issue
Block a user