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:
skalogryz
2010-08-12 09:18:28 +00:00
parent f285301da7
commit 5f20a3f950

View File

@@ -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;