gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/server swf.h action.cpp


From: strk
Subject: [Gnash-commit] gnash/server swf.h action.cpp
Date: Fri, 03 Feb 2006 22:49:52 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     strk <address@hidden>   06/02/03 22:49:52

Modified files:
        server         : swf.h action.cpp 

Log message:
        Added symbolic names for new (unsupported) opcodes.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/server/swf.h.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/server/action.cpp.diff?tr1=1.16&tr2=1.17&r1=text&r2=text

Patches:
Index: gnash/server/action.cpp
diff -u gnash/server/action.cpp:1.16 gnash/server/action.cpp:1.17
--- gnash/server/action.cpp:1.16        Fri Feb  3 20:50:27 2006
+++ gnash/server/action.cpp     Fri Feb  3 22:49:52 2006
@@ -1967,13 +1967,13 @@
                                        break;
                                }
 
-                               case 0x2A:      // throw
+                               case SWF::ACTION_THROW: // 0x2A
                                {
                                        log_error("todo opcode: %02X\n", 
action_id);
                                        break;
                                }
 
-                               case 0x2B:      // cast_object
+                               case SWF::ACTION_CASTOBJECT: // 0x2B
                                {
                                        // TODO
                                        //
@@ -1987,7 +1987,7 @@
                                        break;
                                }
 
-                               case 0x2C:      // implements
+                               case SWF::ACTION_IMPLEMENTS: // 0x2C
                                {
                                        // Declare that a class s1 implements 
one or more
                                        // interfaces (i2 == number of 
interfaces, s3..sn are the names
@@ -2577,7 +2577,7 @@
                                                env->drop(1);
                                        }
                                        break;
-                               case 0x67:      // gt (typed)
+                               case SWF::ACTION_GREATERTHEN: // 0x67:
                                        if (env->top(1).get_type() == 
as_value::STRING)
                                        {
                                                
env->top(1).set_bool(env->top(1).to_tu_string() > env->top(0).to_tu_string());
@@ -2588,12 +2588,12 @@
                                        }
                                        env->drop(1);
                                        break;
-                               case 0x68:      // string gt
+                               case SWF::ACTION_STRING_GREATERTHEN: // 0x68
                                        
env->top(1).set_bool(env->top(1).to_tu_string() > env->top(0).to_tu_string());
                                        env->drop(1);
                                        break;
 
-                               case 0x69:      // extends
+                               case SWF::ACTION_EXTENDS: // 0x69
                                        log_error("todo opcode: %02X\n", 
action_id);
                                        break;
 
Index: gnash/server/swf.h
diff -u gnash/server/swf.h:1.3 gnash/server/swf.h:1.4
--- gnash/server/swf.h:1.3      Fri Feb  3 17:12:39 2006
+++ gnash/server/swf.h  Fri Feb  3 22:49:52 2006
@@ -260,6 +260,28 @@
                ACTION_SHIFTRIGHT2             = 0x65,
                ACTION_STRICTEQ                = 0x66,
 
+               /// SWF6
+               ///
+               /// Similar to Swap + Less Than. It checks whether the
+               /// second parameter is greater than the first and return
+               /// the boolean result on the stack.
+               ///
+               /// See:
+               /// 
http://sswf.sourceforge.net/SWFalexref.html#action_greater_than_typed
+               ///
+               ACTION_GREATERTHEN             = 0x67,
+
+               /// SWF6
+               ///
+               /// Similar to Swap + String Less Than. It checks whether
+               /// the second string is greater than the first and
+               /// return the boolean result on the stack.
+               ///
+               /// See:
+               /// 
http://sswf.sourceforge.net/SWFalexref.html#action_string_greater_than
+               ///
+               ACTION_STRING_GREATERTHEN      = 0x68,
+
                ///
                /// SWF7
                ///




reply via email to

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