fcl-passrc: improvement for Amiga, OS4, MorphOS syscalls

git-svn-id: trunk@48909 -
This commit is contained in:
marcus 2021-03-08 15:00:07 +00:00
parent fc6769329f
commit e668f8732a

View File

@ -5495,8 +5495,12 @@ begin
else
// remove legacy or basesysv on MorphOS syscalls
begin
if CurTokenIsIdentifier('legacy') or CurTokenIsIdentifier('consoledevice')
or (Curtoken=tkIdentifier) and (Pos('base',LowerCase(CurtokenText))>0) then
if (Pos('sysv',LowerCase(CurtokenText))>0) or CurTokenIsIdentifier('legacy') then
NextToken;
// remove LibBase (Amiga, AROS, MorphOS) or Interface (OS4)
if CurTokenIsIdentifier('consoledevice') or
((Curtoken=tkIdentifier) and (Pos('base',LowerCase(CurtokenText)) > 0)) or
((Curtoken=tkIdentifier) and (CurtokenText[1] = 'I')) then
NextToken;
end;
end;