mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 23:49:07 +02:00
+ Implemented support for ;public name XYZ; construct
git-svn-id: trunk@4133 -
This commit is contained in:
parent
ca37943c16
commit
aa2d333b11
@ -1492,10 +1492,27 @@ begin
|
|||||||
begin
|
begin
|
||||||
ExpectToken(tkSemicolon);
|
ExpectToken(tkSemicolon);
|
||||||
end
|
end
|
||||||
else if (UpperCase(CurTokenString) = 'EXTERNAL') then
|
else if (tok = 'EXTERNAL') then
|
||||||
repeat
|
repeat
|
||||||
NextToken;
|
NextToken;
|
||||||
until CurToken = tkSemicolon
|
until CurToken = tkSemicolon
|
||||||
|
else if (tok = 'PUBLIC') then
|
||||||
|
begin
|
||||||
|
NextToken;
|
||||||
|
{ Should be token Name,
|
||||||
|
if not we're in a class and the public section starts }
|
||||||
|
If (Uppercase(CurTokenString)<>'NAME') then
|
||||||
|
begin
|
||||||
|
UngetToken;
|
||||||
|
UngetToken;
|
||||||
|
Break;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
NextToken; // Should be export name string.
|
||||||
|
ExpectToken(tkSemicolon);
|
||||||
|
end;
|
||||||
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
UnGetToken;
|
UnGetToken;
|
||||||
|
Loading…
Reference in New Issue
Block a user