Browse Source

* Consoledevice

git-svn-id: trunk@47478 -
michael 4 years ago
parent
commit
9d4a1d1ac5
2 changed files with 8 additions and 1 deletions
  1. 1 1
      packages/fcl-passrc/src/pparser.pp
  2. 7 0
      packages/fcl-passrc/tests/tcprocfunc.pas

+ 1 - 1
packages/fcl-passrc/src/pparser.pp

@@ -5373,7 +5373,7 @@ begin
         else
           // remove legacy or basesysv on MorphOS syscalls
           begin
-          if CurTokenIsIdentifier('legacy')
+          if CurTokenIsIdentifier('legacy') or CurTokenIsIdentifier('consoledevice')
              or (Curtoken=tkIdentifier) and (Pos('base',LowerCase(CurtokenText))>0) then
             NextToken;
           end;

+ 7 - 0
packages/fcl-passrc/tests/tcprocfunc.pas

@@ -125,6 +125,7 @@ type
     procedure TestCallingConventionSysCall;
     procedure TestCallingConventionSysCallExecbase;
     procedure TestCallingConventionSysCallUtilitybase;
+    procedure TestCallingConventionSysCallConsoleDevice;
     Procedure TestProcedurePublic;
     Procedure TestProcedurePublicIdent;
     Procedure TestFunctionPublic;
@@ -833,6 +834,12 @@ begin
   AssertProc([],[],ccSysCall,0);
 end;
 
+procedure TTestProcedureFunction.TestCallingConventionSysCallConsoleDevice;
+begin
+  ParseProcedure('; syscall ConsoleDevice 123');
+  AssertProc([],[],ccSysCall,0);
+end;
+
 procedure TTestProcedureFunction.TestCallingConventionHardFloat;
 begin
   ParseProcedure('; HardFloat');