You've already forked lazarus-ccr
chelper: improve const type qualifier parsing
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1275 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -1612,12 +1612,16 @@ var
|
|||||||
prefix : TNamePart;
|
prefix : TNamePart;
|
||||||
id : TNamePart;
|
id : TNamePart;
|
||||||
postfix : TNamePart;
|
postfix : TNamePart;
|
||||||
|
// todo: store const them as part of the name
|
||||||
begin
|
begin
|
||||||
|
if Parser.Token='const' then Parser.NextToken; // skip const qualifier
|
||||||
|
|
||||||
if Parser.Token='*' then begin
|
if Parser.Token='*' then begin
|
||||||
prefix:=TNamePart.Create(nk_Ref);
|
prefix:=TNamePart.Create(nk_Ref);
|
||||||
while Parser.Token='*' do begin
|
while Parser.Token='*' do begin
|
||||||
inc(prefix.refcount);
|
inc(prefix.refcount);
|
||||||
Parser.NextToken;
|
Parser.NextToken;
|
||||||
|
if Parser.Token='const' then Parser.NextToken; // skip const qualifier
|
||||||
end;
|
end;
|
||||||
end else
|
end else
|
||||||
prefix:=nil;
|
prefix:=nil;
|
||||||
|
Reference in New Issue
Block a user