Browse Source

* procedure p(); is now allowed in all modes except TP

florian 24 years ago
parent
commit
07adca76f2
1 changed files with 7 additions and 7 deletions
  1. 7 7
      compiler/pdecsub.pas

+ 7 - 7
compiler/pdecsub.pas

@@ -113,12 +113,9 @@ implementation
         consume(_LKLAMMER);
         { Delphi/Kylix supports nonsense like }
         { procedure p();                      }
-        if (token=_RKLAMMER) and
-          (m_delphi in aktmodeswitches) then
-          begin
-             consume(_RKLAMMER);
-             exit;
-          end;
+        if try_to_consume(_RKLAMMER) and
+          not(m_tp in aktmodeswitches) then
+          exit;
         inc(testcurobject);
         repeat
           if try_to_consume(_VAR) then
@@ -1895,7 +1892,10 @@ end;
 end.
 {
   $Log$
-  Revision 1.14  2001-03-22 22:35:42  florian
+  Revision 1.15  2001-03-24 12:18:11  florian
+    * procedure p(); is now allowed in all modes except TP
+
+  Revision 1.14  2001/03/22 22:35:42  florian
     + support for type a = (a=1); in Delphi mode added
     + procedure p(); in Delphi mode supported
     + on isn't keyword anymore, it can be used as