mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 19:16:16 +02:00
codetools: parsing weakexternal procedure specifier
git-svn-id: trunk@22762 -
This commit is contained in:
parent
d79bf4dcde
commit
2f59dcd283
@ -818,6 +818,7 @@ begin
|
||||
Add('EXPERIMENTAL' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('LIBRARY' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('DEPRECATED' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('WEAKEXTERNAL' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
end;
|
||||
|
||||
IsKeyWordProcedureTypeSpecifier:=TKeyWordFunctionList.Create;
|
||||
|
@ -1607,8 +1607,8 @@ begin
|
||||
ReadNextAtom;
|
||||
if not (CurPos.Flag in [cafSemicolon,cafEND]) then
|
||||
ReadConstant(true,false,[]);
|
||||
end else if UpAtomIs('EXTERNAL') or UpAtomIs('PUBLIC') then begin
|
||||
HasForwardModifier:=UpAtomIs('EXTERNAL');
|
||||
end else if UpAtomIs('EXTERNAL') or UpAtomIs('WEAKEXTERNAL') or UpAtomIs('PUBLIC') then begin
|
||||
HasForwardModifier:=UpAtomIs('EXTERNAL') or UpAtomIs('WEAKEXTERNAL');
|
||||
ReadNextAtom;
|
||||
if CurPos.Flag<>cafSemicolon then begin
|
||||
if not UpAtomIs('NAME') then
|
||||
|
Loading…
Reference in New Issue
Block a user