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;
|
||||
id : TNamePart;
|
||||
postfix : TNamePart;
|
||||
// todo: store const them as part of the name
|
||||
begin
|
||||
if Parser.Token='const' then Parser.NextToken; // skip const qualifier
|
||||
|
||||
if Parser.Token='*' then begin
|
||||
prefix:=TNamePart.Create(nk_Ref);
|
||||
while Parser.Token='*' do begin
|
||||
inc(prefix.refcount);
|
||||
Parser.NextToken;
|
||||
if Parser.Token='const' then Parser.NextToken; // skip const qualifier
|
||||
end;
|
||||
end else
|
||||
prefix:=nil;
|
||||
|
Reference in New Issue
Block a user