Browse Source

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

git-svn-id: trunk@48909 -
marcus 4 years ago
parent
commit
e668f8732a
1 changed files with 6 additions and 2 deletions
  1. 6 2
      packages/fcl-passrc/src/pparser.pp

+ 6 - 2
packages/fcl-passrc/src/pparser.pp

@@ -5495,8 +5495,12 @@ begin
         else
         else
           // remove legacy or basesysv on MorphOS syscalls
           // remove legacy or basesysv on MorphOS syscalls
           begin
           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;
             NextToken;
           end;
           end;
       end;
       end;