gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/avm2 r9598: Replace references to Object w


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9598: Replace references to Object with Dynamic and stop skipping return statements.
Date: Fri, 10 Oct 2008 01:35:30 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9598
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Fri 2008-10-10 01:35:30 +0800
message:
  Replace references to Object with Dynamic and stop skipping return statements.
modified:
  testsuite/actionscript.all/haxe-swf9/as_to_hx.pl
=== modified file 'testsuite/actionscript.all/haxe-swf9/as_to_hx.pl'
--- a/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl  2008-10-09 02:42:18 
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl  2008-10-09 17:35:30 
+0000
@@ -181,11 +181,6 @@
                next;
        }
 
-       #Remove return calls(TEMP).
-       if(index($_,"return") != $[-1){
-               skip_line();
-               next;
-       }
        if($_ =~ /Number/){
                skip_line();
                next;
@@ -232,11 +227,8 @@
                next;   
        }
 
-       #Object is not a valid type in Haxe.
-       if($_ =~ /Object/){
-               skip_line();
-               next;
-       }
+       #Replace refrences to Object type with Dynamic.
+       $_  =~ s/(\W)Object(\W)/$1Dynamic$2/g;  
 
        #Remove calls to ASSetPropFlags.  I can't find a Haxe equivilent.
        if($_ =~ /ASSetPropFlags/){


reply via email to

[Prev in Thread] Current Thread [Next in Thread]