codetools: procedure modifier deprecated

git-svn-id: trunk@22471 -
This commit is contained in:
mattias 2009-11-07 12:52:44 +00:00
parent aec217654e
commit dffcbd97cc
3 changed files with 4 additions and 1 deletions

View File

@ -779,6 +779,7 @@ begin
Add('LIBRARY' ,{$ifdef FPC}@{$endif}AllwaysTrue);
Add('FINAL' ,{$ifdef FPC}@{$endif}AllwaysTrue);
Add('ENUMERATOR' ,{$ifdef FPC}@{$endif}AllwaysTrue);
Add('DEPRECATED' ,{$ifdef FPC}@{$endif}AllwaysTrue);
end;
IsKeyWordProcedureSpecifier:=TKeyWordFunctionList.Create;
@ -815,6 +816,7 @@ begin
Add('ALIAS' ,{$ifdef FPC}@{$endif}AllwaysTrue);
Add('EXPERIMENTAL' ,{$ifdef FPC}@{$endif}AllwaysTrue);
Add('LIBRARY' ,{$ifdef FPC}@{$endif}AllwaysTrue);
Add('DEPRECATED' ,{$ifdef FPC}@{$endif}AllwaysTrue);
end;
IsKeyWordProcedureTypeSpecifier:=TKeyWordFunctionList.Create;

View File

@ -1593,6 +1593,7 @@ begin
if IsSpecifier then begin
// read specifier
if UpAtomIs('MESSAGE') or UpAtomIs('DISPID') or UpAtomIs('ENUMERATOR')
or UpAtomIs('DEPRECATED')
then begin
ReadNextAtom;
ReadConstant(true,false,[]);

View File

@ -3652,7 +3652,7 @@ begin
end
else if ((ord(p^) and %11100000) = %11000000) then begin
// could be 2 byte character
if (ord(p[1]) and %11000000) = %10000000 then
if (Count) (ord(p[1]) and %11000000) = %10000000 then
CharLen:=2
else
exit; // missing following bytes