|
@@ -129,7 +129,7 @@ var
|
|
|
|
|
|
function get_object_type_method_virtual : tobjectmethod;
|
|
function get_object_type_method_virtual : tobjectmethod;
|
|
begin
|
|
begin
|
|
- get_object_type_method_virtual := @tsimpleobject.test_virtual;
|
|
|
|
|
|
+ get_object_type_method_virtual := @obj.test_virtual;
|
|
end;
|
|
end;
|
|
|
|
|
|
function get_object_method_virtual : tobjectmethod;
|
|
function get_object_method_virtual : tobjectmethod;
|
|
@@ -140,7 +140,7 @@ var
|
|
{ class access }
|
|
{ class access }
|
|
function get_class_method_normal_self : tclassmethodself;
|
|
function get_class_method_normal_self : tclassmethodself;
|
|
begin
|
|
begin
|
|
- get_class_method_normal_self := @tsimpleclass.test_normal_self;
|
|
|
|
|
|
+ get_class_method_normal_self := @cla.test_normal_self;
|
|
end;
|
|
end;
|
|
|
|
|
|
{
|
|
{
|
|
@@ -153,23 +153,23 @@ var
|
|
|
|
|
|
function get_class_method_virtual_self : tclassmethodself;
|
|
function get_class_method_virtual_self : tclassmethodself;
|
|
begin
|
|
begin
|
|
- get_class_method_virtual_self := @tsimpleclass.test_virtual_self;
|
|
|
|
|
|
+ get_class_method_virtual_self := @cla.test_virtual_self;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
function get_class_method_normal : tclassmethod;
|
|
function get_class_method_normal : tclassmethod;
|
|
begin
|
|
begin
|
|
- get_class_method_normal := @tsimpleclass.test_normal;
|
|
|
|
|
|
+ get_class_method_normal := @cla.test_normal;
|
|
end;
|
|
end;
|
|
{
|
|
{
|
|
function get_class_method_static : tclassmethod;
|
|
function get_class_method_static : tclassmethod;
|
|
begin
|
|
begin
|
|
- get_class_method_static := @tsimpleclass.test_static;
|
|
|
|
|
|
+ get_class_method_static := @cla.test_static;
|
|
end;}
|
|
end;}
|
|
|
|
|
|
function get_class_method_virtual : tclassmethod;
|
|
function get_class_method_virtual : tclassmethod;
|
|
begin
|
|
begin
|
|
- get_class_method_virtual := @tsimpleclass.test_virtual;
|
|
|
|
|
|
+ get_class_method_virtual := @cla.test_virtual;
|
|
end;
|
|
end;
|
|
|
|
|
|
{****************************************************************************************************}
|
|
{****************************************************************************************************}
|
|
@@ -435,7 +435,7 @@ Begin
|
|
clear_globals;
|
|
clear_globals;
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
- obj_method:=@tsimpleobject.test_virtual;
|
|
|
|
|
|
+ obj_method:[email protected]_virtual;
|
|
obj_method(RESULT_U8BIT);
|
|
obj_method(RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;
|
|
failed := true;
|
|
@@ -461,7 +461,7 @@ Begin
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
value_u8bit := RESULT_U8BIT;
|
|
value_u8bit := RESULT_U8BIT;
|
|
- obj_method:=@tsimpleobject.test_virtual;
|
|
|
|
|
|
+ obj_method:[email protected]_virtual;
|
|
obj_method(value_u8bit);
|
|
obj_method(value_u8bit);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;
|
|
failed := true;
|
|
@@ -528,7 +528,7 @@ Begin
|
|
failed := false;
|
|
failed := false;
|
|
|
|
|
|
|
|
|
|
- cla_method := @tsimpleclass.test_normal;
|
|
|
|
|
|
+ cla_method := @cla.test_normal;
|
|
cla_method(RESULT_U8BIT);
|
|
cla_method(RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;
|
|
failed := true;
|
|
@@ -537,7 +537,7 @@ Begin
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
|
|
|
|
- cla_method := @tsimpleclass.test_virtual;
|
|
|
|
|
|
+ cla_method := @cla.test_virtual;
|
|
cla_method(RESULT_U8BIT);
|
|
cla_method(RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;
|
|
failed := true;
|
|
@@ -545,7 +545,7 @@ Begin
|
|
clear_globals;
|
|
clear_globals;
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
- cla_method := @tsimpleclass.test_virtual;
|
|
|
|
|
|
+ cla_method := @cla.test_virtual;
|
|
cla_method(RESULT_U8BIT);
|
|
cla_method(RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;
|
|
failed := true;
|
|
@@ -553,7 +553,7 @@ Begin
|
|
clear_globals;
|
|
clear_globals;
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
-{ cla_method := @tsimpleclass.test_static;
|
|
|
|
|
|
+{ cla_method := @cla.test_static;
|
|
cla_method(RESULT_U8BIT);
|
|
cla_method(RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;}
|
|
failed := true;}
|
|
@@ -562,7 +562,7 @@ Begin
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
|
|
|
|
- cla_method_self := @tsimpleclass.test_normal_self;
|
|
|
|
|
|
+ cla_method_self := @cla.test_normal_self;
|
|
cla_method_self(cla, RESULT_U8BIT);
|
|
cla_method_self(cla, RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;
|
|
failed := true;
|
|
@@ -571,7 +571,7 @@ Begin
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
|
|
|
|
- cla_method_self := @tsimpleclass.test_virtual_self;
|
|
|
|
|
|
+ cla_method_self := @cla.test_virtual_self;
|
|
cla_method_self(cla,RESULT_U8BIT);
|
|
cla_method_self(cla,RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;
|
|
failed := true;
|
|
@@ -579,7 +579,7 @@ Begin
|
|
clear_globals;
|
|
clear_globals;
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
- cla_method_self := @tsimpleclass.test_virtual_self;
|
|
|
|
|
|
+ cla_method_self := @cla.test_virtual_self;
|
|
cla_method_self(cla, RESULT_U8BIT);
|
|
cla_method_self(cla, RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;
|
|
failed := true;
|
|
@@ -587,7 +587,7 @@ Begin
|
|
clear_globals;
|
|
clear_globals;
|
|
clear_values;
|
|
clear_values;
|
|
|
|
|
|
-{ cla_method := @tsimpleclass.test_static;
|
|
|
|
|
|
+{ cla_method := @cla.test_static;
|
|
cla_method(RESULT_U8BIT);
|
|
cla_method(RESULT_U8BIT);
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
if global_u8bit <> RESULT_U8BIT then
|
|
failed := true;}
|
|
failed := true;}
|
|
@@ -601,7 +601,10 @@ end.
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.3 2002-12-29 15:30:55 peter
|
|
|
|
|
|
+ Revision 1.4 2003-01-16 22:14:49 peter
|
|
|
|
+ * fixed wrong methodpointer loads
|
|
|
|
+
|
|
|
|
+ Revision 1.3 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
|
|
|
|
|