From e668f8732a85e5a40c318fce70eba53fcbb99458 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 8 Mar 2021 15:00:07 +0000 Subject: [PATCH] fcl-passrc: improvement for Amiga, OS4, MorphOS syscalls git-svn-id: trunk@48909 - --- packages/fcl-passrc/src/pparser.pp | 8 ++++++-- 1 file 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;