Browse Source

* allow in delphi mode directives without semicolons between

peter 25 years ago
parent
commit
b91050ccb7
1 changed files with 8 additions and 2 deletions
  1. 8 2
      compiler/psub.pas

+ 8 - 2
compiler/psub.pas

@@ -1808,7 +1808,10 @@ begin
         if (block_type=bt_const) and
         if (block_type=bt_const) and
            (token=_EQUAL) then
            (token=_EQUAL) then
          break;
          break;
-        consume(_SEMICOLON);
+        { support procedure proc;stdcall export; in Delphi mode only }
+        if not((m_delphi in aktmodeswitches) and
+               is_proc_directive(token)) then
+         consume(_SEMICOLON);
       end
       end
      else
      else
       break;
       break;
@@ -2080,7 +2083,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.65  2000-06-25 20:13:51  florian
+  Revision 1.66  2000-07-06 19:04:59  peter
+    * allow in delphi mode directives without semicolons between
+
+  Revision 1.65  2000/06/25 20:13:51  florian
     * fixed a problem with forward declarations in TP mode, probably introduced by
     * fixed a problem with forward declarations in TP mode, probably introduced by
       Pierre's last changes
       Pierre's last changes