summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-03-08 15:00:07 +0000
committermarcus <marcus@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-03-08 15:00:07 +0000
commit036100a0e84114b1d4a8d2378d1776bdccd8ab3e (patch)
tree7eb0aa616cc972e6296b6280ca6a673358fd3e0f
parent247cfc473cefd4838ad4d4cadde499f0de5dbd00 (diff)
downloadfpc-036100a0e84114b1d4a8d2378d1776bdccd8ab3e.tar.gz
fcl-passrc: improvement for Amiga, OS4, MorphOS syscalls
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@48909 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--packages/fcl-passrc/src/pparser.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/fcl-passrc/src/pparser.pp b/packages/fcl-passrc/src/pparser.pp
index a85d01bb5d..b3741ee1ff 100644
--- a/packages/fcl-passrc/src/pparser.pp
+++ b/packages/fcl-passrc/src/pparser.pp
@@ -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;