mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 06:54:05 +02:00
* Patch from Inoussa OUEDRAOGO to support GUIDs in interface declarations
git-svn-id: trunk@7701 -
This commit is contained in:
parent
b6f4e26631
commit
663e020402
@ -248,6 +248,7 @@ type
|
||||
AncestorType: TPasType; // TPasClassType or TPasUnresolvedTypeRef
|
||||
IsPacked: Boolean; // 12/04/04 - Dave - Added
|
||||
Members: TList; // array of TPasElement objects
|
||||
InterfaceGUID : string; // 15/06/07 - Inoussa
|
||||
end;
|
||||
|
||||
TArgumentAccess = (argDefault, argConst, argVar, argOut);
|
||||
|
@ -2018,6 +2018,12 @@ begin
|
||||
|
||||
if CurToken <> tkSemicolon then
|
||||
begin
|
||||
if ( AObjKind = okInterface ) and ( CurToken = tkSquaredBraceOpen ) then
|
||||
begin
|
||||
ExpectToken(tkString);
|
||||
TPasClassType(Result).InterfaceGUID := CurTokenString;
|
||||
ExpectToken(tkSquaredBraceClose);
|
||||
end;
|
||||
CurVisibility := visDefault;
|
||||
while CurToken <> tkEnd do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user