Browse Source

* removed more conflicting calling directives

peter 22 years ago
parent
commit
ed1c028250

+ 22 - 19
tests/test/cg/tcalobj2.pp

@@ -192,9 +192,9 @@ type
    object_s32bit : longint;
    object_s32bit : longint;
    object_s64bit : int64;
    object_s64bit : int64;
    constructor constructor_params_mixed(u8 :byte; u16: word;
    constructor constructor_params_mixed(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);pascal;
-   constructor constructor_init;pascal;
-   destructor destructor_params_done;pascal;
+      bigstring: shortstring; s32: longint; s64: int64);
+   constructor constructor_init;
+   destructor destructor_params_done;
    procedure method_normal_params_mixed(u8 :byte; u16: word;
    procedure method_normal_params_mixed(u8 :byte; u16: word;
       bigstring: shortstring; s32: longint; s64: int64);pascal;
       bigstring: shortstring; s32: longint; s64: int64);pascal;
    procedure method_virtual_params_mixed(u8 :byte; u16: word;
    procedure method_virtual_params_mixed(u8 :byte; u16: word;
@@ -225,15 +225,15 @@ type
  pheritedvmtobject = ^theritedvmtobject;
  pheritedvmtobject = ^theritedvmtobject;
  theritedvmtobject = object(tvmtobject)
  theritedvmtobject = object(tvmtobject)
    constructor constructor_params_mixed_call_virtual(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_virtual(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);pascal;
+      bigstring: shortstring; s32: longint; s64: int64);
    constructor constructor_params_mixed_call_overriden(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_overriden(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);pascal;
+      bigstring: shortstring; s32: longint; s64: int64);
    constructor constructor_params_mixed_call_static(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_static(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);pascal;
+      bigstring: shortstring; s32: longint; s64: int64);
    constructor constructor_params_mixed_call_normal(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_normal(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);pascal;
+      bigstring: shortstring; s32: longint; s64: int64);
    constructor constructor_params_mixed_call_inherited(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_inherited(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);pascal;
+      bigstring: shortstring; s32: longint; s64: int64);
    procedure method_virtual_overriden_params_mixed(
    procedure method_virtual_overriden_params_mixed(
     u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);virtual;pascal;
     u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);virtual;pascal;
 
 
@@ -260,7 +260,7 @@ type
  pfailvmtobject = ^tfailvmtobject;
  pfailvmtobject = ^tfailvmtobject;
  tfailvmtobject = object(tvmtobject)
  tfailvmtobject = object(tvmtobject)
  public
  public
-    constructor constructor_public_none;pascal;
+    constructor constructor_public_none;
  end;
  end;
 
 
 
 
@@ -402,7 +402,7 @@ type
 {**************************************************************************}
 {**************************************************************************}
 {                             FAILED OBJECT                                }
 {                             FAILED OBJECT                                }
 {**************************************************************************}
 {**************************************************************************}
-constructor tfailvmtobject.constructor_public_none;pascal;
+constructor tfailvmtobject.constructor_public_none;
  begin
  begin
     { this calls the constructor fail special keyword }
     { this calls the constructor fail special keyword }
     fail;
     fail;
@@ -412,7 +412,7 @@ constructor tfailvmtobject.constructor_public_none;pascal;
 {                               VMT  OBJECT                                }
 {                               VMT  OBJECT                                }
 {**************************************************************************}
 {**************************************************************************}
 constructor tvmtobject.constructor_params_mixed(u8 :byte; u16: word;
 constructor tvmtobject.constructor_params_mixed(u8 :byte; u16: word;
-   bigstring: shortstring; s32: longint; s64: int64);pascal;
+   bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := u8;
    object_u8bit := u8;
    object_u16bit := u16;
    object_u16bit := u16;
@@ -422,7 +422,7 @@ constructor tvmtobject.constructor_params_mixed(u8 :byte; u16: word;
  end;
  end;
 
 
 
 
-constructor tvmtobject.constructor_init;pascal;
+constructor tvmtobject.constructor_init;
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -431,7 +431,7 @@ constructor tvmtobject.constructor_init;pascal;
    object_s64bit := 0;
    object_s64bit := 0;
  end;
  end;
 
 
-destructor tvmtobject.destructor_params_done;pascal;
+destructor tvmtobject.destructor_params_done;
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -536,7 +536,7 @@ procedure tvmtobject.method_virtual_call_inherited_params_mixed(
 {                          INHERITED VMT OBJECT                            }
 {                          INHERITED VMT OBJECT                            }
 {**************************************************************************}
 {**************************************************************************}
 constructor theritedvmtobject.constructor_params_mixed_call_virtual(
 constructor theritedvmtobject.constructor_params_mixed_call_virtual(
-   u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);pascal;
+   u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -547,7 +547,7 @@ constructor theritedvmtobject.constructor_params_mixed_call_virtual(
  end;
  end;
 
 
 constructor theritedvmtobject.constructor_params_mixed_call_overriden(
 constructor theritedvmtobject.constructor_params_mixed_call_overriden(
-   u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);pascal;
+   u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -558,7 +558,7 @@ constructor theritedvmtobject.constructor_params_mixed_call_overriden(
  end;
  end;
 
 
 constructor theritedvmtobject.constructor_params_mixed_call_static(
 constructor theritedvmtobject.constructor_params_mixed_call_static(
-    u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);pascal;
+    u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -569,7 +569,7 @@ constructor theritedvmtobject.constructor_params_mixed_call_static(
  end;
  end;
 
 
 constructor theritedvmtobject.constructor_params_mixed_call_normal(
 constructor theritedvmtobject.constructor_params_mixed_call_normal(
-    u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);pascal;
+    u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -580,7 +580,7 @@ constructor theritedvmtobject.constructor_params_mixed_call_normal(
  end;
  end;
 
 
 constructor theritedvmtobject.constructor_params_mixed_call_inherited
 constructor theritedvmtobject.constructor_params_mixed_call_inherited
-   (u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);pascal;
+   (u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -3295,7 +3295,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.3  2002-09-07 15:40:53  peter
+  Revision 1.4  2003-01-05 18:21:30  peter
+    * removed more conflicting calling directives
+
+  Revision 1.3  2002/09/07 15:40:53  peter
     * old logs removed and tabs fixed
     * old logs removed and tabs fixed
 
 
   Revision 1.2  2002/05/05 19:13:19  carl
   Revision 1.2  2002/05/05 19:13:19  carl

+ 5 - 2
tests/test/cg/tcalobj4.pp

@@ -516,7 +516,7 @@ procedure tvmtobject.method_virtual_call_normal_params_mixed(
    end;
    end;
 
 
 procedure tvmtobject.method_virtual_call_constructor_params_mixed(
 procedure tvmtobject.method_virtual_call_constructor_params_mixed(
-      u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
+      u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);popstack;
    begin
    begin
      constructor_params_mixed(u8, u16, bigstring, s32, s64);
      constructor_params_mixed(u8, u16, bigstring, s32, s64);
    end;
    end;
@@ -3294,7 +3294,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2002-12-29 15:30:55  peter
+  Revision 1.5  2003-01-05 18:21:30  peter
+    * removed more conflicting calling directives
+
+  Revision 1.4  2002/12/29 15:30:55  peter
     * updated for 1.1 compiler that does not allow calling conventions
     * updated for 1.1 compiler that does not allow calling conventions
       for constructor/destructor
       for constructor/destructor
 
 

+ 22 - 19
tests/test/cg/tcalobj6.pp

@@ -192,9 +192,9 @@ type
    object_s32bit : longint;
    object_s32bit : longint;
    object_s64bit : int64;
    object_s64bit : int64;
    constructor constructor_params_mixed(u8 :byte; u16: word;
    constructor constructor_params_mixed(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);register;
-   constructor constructor_init;register;
-   destructor destructor_params_done;register;
+      bigstring: shortstring; s32: longint; s64: int64);
+   constructor constructor_init;
+   destructor destructor_params_done;
    procedure method_normal_params_mixed(u8 :byte; u16: word;
    procedure method_normal_params_mixed(u8 :byte; u16: word;
       bigstring: shortstring; s32: longint; s64: int64);register;
       bigstring: shortstring; s32: longint; s64: int64);register;
    procedure method_virtual_params_mixed(u8 :byte; u16: word;
    procedure method_virtual_params_mixed(u8 :byte; u16: word;
@@ -225,15 +225,15 @@ type
  pheritedvmtobject = ^theritedvmtobject;
  pheritedvmtobject = ^theritedvmtobject;
  theritedvmtobject = object(tvmtobject)
  theritedvmtobject = object(tvmtobject)
    constructor constructor_params_mixed_call_virtual(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_virtual(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);register;
+      bigstring: shortstring; s32: longint; s64: int64);
    constructor constructor_params_mixed_call_overriden(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_overriden(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);register;
+      bigstring: shortstring; s32: longint; s64: int64);
    constructor constructor_params_mixed_call_static(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_static(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);register;
+      bigstring: shortstring; s32: longint; s64: int64);
    constructor constructor_params_mixed_call_normal(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_normal(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);register;
+      bigstring: shortstring; s32: longint; s64: int64);
    constructor constructor_params_mixed_call_inherited(u8 :byte; u16: word;
    constructor constructor_params_mixed_call_inherited(u8 :byte; u16: word;
-      bigstring: shortstring; s32: longint; s64: int64);register;
+      bigstring: shortstring; s32: longint; s64: int64);
    procedure method_virtual_overriden_params_mixed(
    procedure method_virtual_overriden_params_mixed(
     u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);virtual;register;
     u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);virtual;register;
 
 
@@ -260,7 +260,7 @@ type
  pfailvmtobject = ^tfailvmtobject;
  pfailvmtobject = ^tfailvmtobject;
  tfailvmtobject = object(tvmtobject)
  tfailvmtobject = object(tvmtobject)
  public
  public
-    constructor constructor_public_none;register;
+    constructor constructor_public_none;
  end;
  end;
 
 
 
 
@@ -402,7 +402,7 @@ type
 {**************************************************************************}
 {**************************************************************************}
 {                             FAILED OBJECT                                }
 {                             FAILED OBJECT                                }
 {**************************************************************************}
 {**************************************************************************}
-constructor tfailvmtobject.constructor_public_none;register;
+constructor tfailvmtobject.constructor_public_none;
  begin
  begin
     { this calls the constructor fail special keyword }
     { this calls the constructor fail special keyword }
     fail;
     fail;
@@ -412,7 +412,7 @@ constructor tfailvmtobject.constructor_public_none;register;
 {                               VMT  OBJECT                                }
 {                               VMT  OBJECT                                }
 {**************************************************************************}
 {**************************************************************************}
 constructor tvmtobject.constructor_params_mixed(u8 :byte; u16: word;
 constructor tvmtobject.constructor_params_mixed(u8 :byte; u16: word;
-   bigstring: shortstring; s32: longint; s64: int64);register;
+   bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := u8;
    object_u8bit := u8;
    object_u16bit := u16;
    object_u16bit := u16;
@@ -422,7 +422,7 @@ constructor tvmtobject.constructor_params_mixed(u8 :byte; u16: word;
  end;
  end;
 
 
 
 
-constructor tvmtobject.constructor_init;register;
+constructor tvmtobject.constructor_init;
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -431,7 +431,7 @@ constructor tvmtobject.constructor_init;register;
    object_s64bit := 0;
    object_s64bit := 0;
  end;
  end;
 
 
-destructor tvmtobject.destructor_params_done;register;
+destructor tvmtobject.destructor_params_done;
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -536,7 +536,7 @@ procedure tvmtobject.method_virtual_call_inherited_params_mixed(
 {                          INHERITED VMT OBJECT                            }
 {                          INHERITED VMT OBJECT                            }
 {**************************************************************************}
 {**************************************************************************}
 constructor theritedvmtobject.constructor_params_mixed_call_virtual(
 constructor theritedvmtobject.constructor_params_mixed_call_virtual(
-   u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);register;
+   u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -547,7 +547,7 @@ constructor theritedvmtobject.constructor_params_mixed_call_virtual(
  end;
  end;
 
 
 constructor theritedvmtobject.constructor_params_mixed_call_overriden(
 constructor theritedvmtobject.constructor_params_mixed_call_overriden(
-   u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);register;
+   u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -558,7 +558,7 @@ constructor theritedvmtobject.constructor_params_mixed_call_overriden(
  end;
  end;
 
 
 constructor theritedvmtobject.constructor_params_mixed_call_static(
 constructor theritedvmtobject.constructor_params_mixed_call_static(
-    u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);register;
+    u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -569,7 +569,7 @@ constructor theritedvmtobject.constructor_params_mixed_call_static(
  end;
  end;
 
 
 constructor theritedvmtobject.constructor_params_mixed_call_normal(
 constructor theritedvmtobject.constructor_params_mixed_call_normal(
-    u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);register;
+    u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -580,7 +580,7 @@ constructor theritedvmtobject.constructor_params_mixed_call_normal(
  end;
  end;
 
 
 constructor theritedvmtobject.constructor_params_mixed_call_inherited
 constructor theritedvmtobject.constructor_params_mixed_call_inherited
-   (u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);register;
+   (u8 :byte; u16: word; bigstring: shortstring; s32: longint; s64: int64);
  begin
  begin
    object_u8bit := 0;
    object_u8bit := 0;
    object_u16bit := 0;
    object_u16bit := 0;
@@ -3295,7 +3295,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.3  2002-09-07 15:40:54  peter
+  Revision 1.4  2003-01-05 18:21:30  peter
+    * removed more conflicting calling directives
+
+  Revision 1.3  2002/09/07 15:40:54  peter
     * old logs removed and tabs fixed
     * old logs removed and tabs fixed
 
 
   Revision 1.2  2002/05/05 19:13:19  carl
   Revision 1.2  2002/05/05 19:13:19  carl

+ 8 - 5
tests/test/cg/tcalpvr2.pp

@@ -32,14 +32,14 @@ type
   troutineresult = function (x: longint; y: byte): int64;pascal;
   troutineresult = function (x: longint; y: byte): int64;pascal;
 
 
   tsimpleobject = object
   tsimpleobject = object
-    constructor init;pascal;
+    constructor init;
     procedure test_normal(x: byte);pascal;
     procedure test_normal(x: byte);pascal;
     procedure test_static(x: byte);static;pascal;
     procedure test_static(x: byte);static;pascal;
     procedure test_virtual(x: byte);virtual;pascal;
     procedure test_virtual(x: byte);virtual;pascal;
   end;
   end;
 
 
   tsimpleclass = class
   tsimpleclass = class
-    constructor create;pascal;
+    constructor create;
     procedure test_normal(x: byte);pascal;
     procedure test_normal(x: byte);pascal;
     class procedure test_static(x: byte);pascal;
     class procedure test_static(x: byte);pascal;
     procedure test_virtual(x: byte);virtual;pascal;
     procedure test_virtual(x: byte);virtual;pascal;
@@ -174,7 +174,7 @@ var
 
 
  {****************************************************************************************************}
  {****************************************************************************************************}
 
 
-  constructor tsimpleobject.init;pascal;
+  constructor tsimpleobject.init;
    begin
    begin
    end;
    end;
 
 
@@ -194,7 +194,7 @@ var
    end;
    end;
 
 
  {****************************************************************************************************}
  {****************************************************************************************************}
-  constructor tsimpleclass.create;pascal;
+  constructor tsimpleclass.create;
    begin
    begin
     inherited create;
     inherited create;
    end;
    end;
@@ -601,7 +601,10 @@ end.
 
 
 {
 {
    $Log$
    $Log$
-   Revision 1.2  2002-09-07 15:40:54  peter
+   Revision 1.3  2003-01-05 18:21:30  peter
+     * removed more conflicting calling directives
+
+   Revision 1.2  2002/09/07 15:40:54  peter
      * old logs removed and tabs fixed
      * old logs removed and tabs fixed
 
 
    Revision 1.1  2002/05/05 13:58:50  carl
    Revision 1.1  2002/05/05 13:58:50  carl

+ 8 - 5
tests/test/cg/tcalpvr6.pp

@@ -32,14 +32,14 @@ type
   troutineresult = function (x: longint; y: byte): int64;register;
   troutineresult = function (x: longint; y: byte): int64;register;
 
 
   tsimpleobject = object
   tsimpleobject = object
-    constructor init;register;
+    constructor init;
     procedure test_normal(x: byte);register;
     procedure test_normal(x: byte);register;
     procedure test_static(x: byte);static;register;
     procedure test_static(x: byte);static;register;
     procedure test_virtual(x: byte);virtual;register;
     procedure test_virtual(x: byte);virtual;register;
   end;
   end;
 
 
   tsimpleclass = class
   tsimpleclass = class
-    constructor create;register;
+    constructor create;
     procedure test_normal(x: byte);register;
     procedure test_normal(x: byte);register;
     class procedure test_static(x: byte);register;
     class procedure test_static(x: byte);register;
     procedure test_virtual(x: byte);virtual;register;
     procedure test_virtual(x: byte);virtual;register;
@@ -174,7 +174,7 @@ var
 
 
  {****************************************************************************************************}
  {****************************************************************************************************}
 
 
-  constructor tsimpleobject.init;register;
+  constructor tsimpleobject.init;
    begin
    begin
    end;
    end;
 
 
@@ -194,7 +194,7 @@ var
    end;
    end;
 
 
  {****************************************************************************************************}
  {****************************************************************************************************}
-  constructor tsimpleclass.create;register;
+  constructor tsimpleclass.create;
    begin
    begin
     inherited create;
     inherited create;
    end;
    end;
@@ -601,7 +601,10 @@ end.
 
 
 {
 {
    $Log$
    $Log$
-   Revision 1.2  2002-09-07 15:40:55  peter
+   Revision 1.3  2003-01-05 18:21:30  peter
+     * removed more conflicting calling directives
+
+   Revision 1.2  2002/09/07 15:40:55  peter
      * old logs removed and tabs fixed
      * old logs removed and tabs fixed
 
 
    Revision 1.1  2002/05/05 13:58:50  carl
    Revision 1.1  2002/05/05 13:58:50  carl