gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ./ChangeLog server/action.cpp


From: strk
Subject: [Gnash-commit] gnash ./ChangeLog server/action.cpp
Date: Mon, 06 Feb 2006 18:54:30 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     strk <address@hidden>   06/02/06 18:54:30

Modified files:
        .              : ChangeLog 
        server         : action.cpp 

Log message:
        Used symbolic names in s_instruction_table

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/ChangeLog.diff?tr1=1.97&tr2=1.98&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/server/action.cpp.diff?tr1=1.25&tr2=1.26&r1=text&r2=text

Patches:
Index: gnash/ChangeLog
diff -u gnash/ChangeLog:1.97 gnash/ChangeLog:1.98
--- gnash/ChangeLog:1.97        Mon Feb  6 04:11:04 2006
+++ gnash/ChangeLog     Mon Feb  6 18:54:30 2006
@@ -1,3 +1,7 @@
+2006-02-05 Sandro Santilli <address@hidden>
+
+       * server/action.cpp used symbolic names in s_instruction_table.
+
 2006-02-05  Rob Savoye  <address@hidden>
 
        * testsuite/actionscript.all/testin.xml: XML test file to test the
Index: gnash/server/action.cpp
diff -u gnash/server/action.cpp:1.25 gnash/server/action.cpp:1.26
--- gnash/server/action.cpp:1.25        Mon Feb  6 04:11:04 2006
+++ gnash/server/action.cpp     Mon Feb  6 18:54:30 2006
@@ -4111,106 +4111,105 @@
                };
 
                static inst_info        s_instruction_table[] = {
-                       { 0x04, "next_frame", ARG_NONE },
-                       { 0x05, "prev_frame", ARG_NONE },
-                       { 0x06, "play", ARG_NONE },
-                       { 0x07, "stop", ARG_NONE },
-                       { 0x08, "toggle_qlty", ARG_NONE },
-                       { 0x09, "stop_sounds", ARG_NONE },
-                       { 0x0A, "add", ARG_NONE },
-                       { 0x0B, "sub", ARG_NONE },
-                       { 0x0C, "mul", ARG_NONE },
-                       { 0x0D, "div", ARG_NONE },
-                       { 0x0E, "equ", ARG_NONE },
-                       { 0x0F, "lt", ARG_NONE },
-                       { 0x10, "and", ARG_NONE },
-                       { 0x11, "or", ARG_NONE },
-                       { 0x12, "not", ARG_NONE },
-                       { 0x13, "str_eq", ARG_NONE },
-                       { 0x14, "str_len", ARG_NONE },
-                       { 0x15, "substr", ARG_NONE },
-                       { 0x17, "pop", ARG_NONE },
-                       { 0x18, "floor", ARG_NONE },
-                       { 0x1C, "get_var", ARG_NONE },
-                       { 0x1D, "set_var", ARG_NONE },
-                       { 0x20, "set_target_exp", ARG_NONE },
-                       { 0x21, "str_cat", ARG_NONE },
-                       { 0x22, "get_prop", ARG_NONE },
-                       { 0x23, "set_prop", ARG_NONE },
-                       { 0x24, "dup_sprite", ARG_NONE },
-                       { 0x25, "rem_sprite", ARG_NONE },
-                       { 0x26, "trace", ARG_NONE },
-                       { 0x27, "start_drag", ARG_NONE },
-                       { 0x28, "stop_drag", ARG_NONE },
-                       { 0x29, "str_lt", ARG_NONE },
-                       { 0x2A, "throw_fixme", ARG_NONE },
-                       { 0x2B, "cast_fixme", ARG_NONE },
-                       { 0x2C, "implements_fixme", ARG_NONE },
-                       { 0x30, "random", ARG_NONE },
-                       { 0x31, "mb_length_fixme", ARG_NONE },
-                       { 0x32, "ord", ARG_NONE },
-                       { 0x33, "chr", ARG_NONE },
-                       { 0x34, "get_timer", ARG_NONE },
-                       { 0x35, "substr_mb_fixme", ARG_NONE },
-                       { 0x36, "ord_mb", ARG_NONE },
-                       { 0x37, "chr_mb_fixme", ARG_NONE },
-                       { 0x3A, "delete_fixme", ARG_NONE },
-                       { 0x3B, "delete_all_fixme", ARG_NONE },
-                       { 0x3C, "set_local", ARG_NONE },
-                       { 0x3D, "call_func", ARG_NONE },
-                       { 0x3E, "return", ARG_NONE },
-                       { 0x3F, "mod", ARG_NONE },
-                       { 0x40, "new", ARG_NONE },
-                       { 0x41, "decl_local", ARG_NONE },
-                       { 0x42, "decl_array", ARG_NONE },
-                       { 0x43, "decl_obj_fixme", ARG_NONE },
-                       { 0x44, "type_of", ARG_NONE },
-                       { 0x45, "get_target_fixme", ARG_NONE },
-                       { 0x46, "enumerate", ARG_NONE },
-                       { 0x47, "add_t", ARG_NONE },
-                       { 0x48, "lt_t", ARG_NONE },
-                       { 0x49, "eq_t", ARG_NONE },
-                       { 0x4A, "number", ARG_NONE },
-                       { 0x4B, "string", ARG_NONE },
-                       { 0x4C, "dup", ARG_NONE },
-                       { 0x4D, "swap", ARG_NONE },
-                       { 0x4E, "get_member", ARG_NONE },
-                       { 0x4F, "set_member", ARG_NONE },
-                       { 0x50, "inc", ARG_NONE },
-                       { 0x51, "dec", ARG_NONE },
-                       { 0x52, "call_method", ARG_NONE },
-                       { 0x53, "new_method_fixme", ARG_NONE },
-                       { 0x54, "is_inst_of_fixme", ARG_NONE },
-                       { 0x55, "enum_object_fixme", ARG_NONE },
-                       { 0x60, "bit_and", ARG_NONE },
-                       { 0x61, "bit_or", ARG_NONE },
-                       { 0x62, "bit_xor", ARG_NONE },
-                       { 0x63, "shl", ARG_NONE },
-                       { 0x64, "asr", ARG_NONE },
-                       { 0x65, "lsr", ARG_NONE },
-                       { 0x66, "eq_strict", ARG_NONE },
-                       { 0x67, "gt_t", ARG_NONE },
-                       { 0x69, "extends_fixme", ARG_NONE },
-                       
-                       { 0x81, "goto_frame", ARG_U16 },
-                       { 0x83, "get_url", ARG_STR },
-                       { 0x87, "store_register", ARG_U8 },
-                       { 0x88, "decl_dict", ARG_DECL_DICT },
-                       { 0x8A, "wait_for_frame", ARG_HEX },
-                       { 0x8B, "set_target", ARG_STR },
-                       { 0x8C, "goto_frame_lbl", ARG_STR },
-                       { 0x8D, "wait_for_fr_exp", ARG_HEX },
-                       { 0x8E, "function2", ARG_FUNCTION2 },
-                       { 0x8F, "try_fixme", ARG_FUNCTION2 },
-                       { 0x94, "with", ARG_U16 },
-                       { 0x96, "push_data", ARG_PUSH_DATA },
-                       { 0x99, "goto", ARG_S16 },
-                       { 0x9A, "get_url2", ARG_HEX },
-                       { 0x9B, "func", ARG_HEX },
-                       { 0x9D, "branch_if_true", ARG_S16 },
-                       { 0x9E, "call_frame", ARG_HEX },
-                       { 0x9F, "goto_frame_exp", ARG_HEX },
-                       { 0x00, "<end>", ARG_NONE }
+                       { SWF::ACTION_NEXTFRAME, "next_frame", ARG_NONE },
+                       { SWF::ACTION_PREVFRAME, "prev_frame", ARG_NONE },
+                       { SWF::ACTION_PLAY, "play", ARG_NONE },
+                       { SWF::ACTION_STOP, "stop", ARG_NONE },
+                       { SWF::ACTION_TOGGLEQUALITY, "toggle_qlty", ARG_NONE },
+                       { SWF::ACTION_STOPSOUNDS, "stop_sounds", ARG_NONE },
+                       { SWF::ACTION_ADD, "add", ARG_NONE },
+                       { SWF::ACTION_SUBTRACT, "sub", ARG_NONE },
+                       { SWF::ACTION_MULTIPLY, "mul", ARG_NONE },
+                       { SWF::ACTION_DIVIDE, "div", ARG_NONE },
+                       { SWF::ACTION_EQUAL, "equ", ARG_NONE },
+                       { SWF::ACTION_LESSTHAN, "lt", ARG_NONE },
+                       { SWF::ACTION_LOGICALAND, "and", ARG_NONE },
+                       { SWF::ACTION_LOGICALOR, "or", ARG_NONE },
+                       { SWF::ACTION_LOGICALNOT, "not", ARG_NONE },
+                       { SWF::ACTION_STRINGEQ, "str_eq", ARG_NONE },
+                       { SWF::ACTION_STRINGLENGTH, "str_len", ARG_NONE },
+                       { SWF::ACTION_SUBSTRING, "substr", ARG_NONE },
+                       { SWF::ACTION_POP, "pop", ARG_NONE },
+                       { SWF::ACTION_INT, "floor", ARG_NONE },
+                       { SWF::ACTION_GETVARIABLE, "get_var", ARG_NONE },
+                       { SWF::ACTION_SETVARIABLE, "set_var", ARG_NONE },
+                       { SWF::ACTION_SETTARGETEXPRESSION, "set_target_exp", 
ARG_NONE },
+                       { SWF::ACTION_STRINGCONCAT, "str_cat", ARG_NONE },
+                       { SWF::ACTION_GETPROPERTY, "get_prop", ARG_NONE },
+                       { SWF::ACTION_SETPROPERTY, "set_prop", ARG_NONE },
+                       { SWF::ACTION_DUPLICATECLIP, "dup_sprite", ARG_NONE },
+                       { SWF::ACTION_REMOVECLIP, "rem_sprite", ARG_NONE },
+                       { SWF::ACTION_TRACE, "trace", ARG_NONE },
+                       { SWF::ACTION_STARTDRAGMOVIE, "start_drag", ARG_NONE },
+                       { SWF::ACTION_STOPDRAGMOVIE, "stop_drag", ARG_NONE },
+                       { SWF::ACTION_STRINGCOMPARE, "str_lt", ARG_NONE },
+                       { SWF::ACTION_THROW, "throw_fixme", ARG_NONE },
+                       { SWF::ACTION_CASTOBJECT, "cast_fixme", ARG_NONE },
+                       { SWF::ACTION_IMPLEMENTS, "implements_fixme", ARG_NONE 
},
+                       { SWF::ACTION_RANDOM, "random", ARG_NONE },
+                       { SWF::ACTION_MBLENGTH, "mb_length_fixme", ARG_NONE },
+                       { SWF::ACTION_ORD, "ord", ARG_NONE },
+                       { SWF::ACTION_CHR, "chr", ARG_NONE },
+                       { SWF::ACTION_GETTIMER, "get_timer", ARG_NONE },
+                       { SWF::ACTION_MBSUBSTRING, "substr_mb_fixme", ARG_NONE 
},
+                       { SWF::ACTION_MBORD, "ord_mb", ARG_NONE },
+                       { SWF::ACTION_MBCHR, "chr_mb_fixme", ARG_NONE },
+                       { SWF::ACTION_DELETEVAR, "delete_fixme", ARG_NONE },
+                       { SWF::ACTION_DELETE, "delete_all_fixme", ARG_NONE },
+                       { SWF::ACTION_VAREQUALS, "set_local", ARG_NONE },
+                       { SWF::ACTION_CALLFUNCTION, "call_func", ARG_NONE },
+                       { SWF::ACTION_RETURN, "return", ARG_NONE },
+                       { SWF::ACTION_MODULO, "mod", ARG_NONE },
+                       { SWF::ACTION_NEW, "new", ARG_NONE },
+                       { SWF::ACTION_VAR, "decl_local", ARG_NONE },
+                       { SWF::ACTION_INITARRAY, "decl_array", ARG_NONE },
+                       { SWF::ACTION_INITOBJECT, "decl_obj_fixme", ARG_NONE },
+                       { SWF::ACTION_TYPEOF, "type_of", ARG_NONE },
+                       { SWF::ACTION_TARGETPATH, "get_target_fixme", ARG_NONE 
},
+                       { SWF::ACTION_ENUMERATE, "enumerate", ARG_NONE },
+                       { SWF::ACTION_NEWADD, "add_t", ARG_NONE },
+                       { SWF::ACTION_NEWLESSTHAN, "lt_t", ARG_NONE },
+                       { SWF::ACTION_NEWEQUALS, "eq_t", ARG_NONE },
+                       { SWF::ACTION_TONUMBER, "number", ARG_NONE },
+                       { SWF::ACTION_TOSTRING, "string", ARG_NONE },
+                       { SWF::ACTION_DUP, "dup", ARG_NONE },
+                       { SWF::ACTION_SWAP, "swap", ARG_NONE },
+                       { SWF::ACTION_GETMEMBER, "get_member", ARG_NONE },
+                       { SWF::ACTION_SETMEMBER, "set_member", ARG_NONE },
+                       { SWF::ACTION_INCREMENT, "inc", ARG_NONE },
+                       { SWF::ACTION_DECREMENT, "dec", ARG_NONE },
+                       { SWF::ACTION_CALLMETHOD, "call_method", ARG_NONE },
+                       { SWF::ACTION_NEWMETHOD, "new_method_fixme", ARG_NONE },
+                       { SWF::ACTION_INSTANCEOF, "is_inst_of_fixme", ARG_NONE 
},
+                       { SWF::ACTION_ENUM2, "enum_object_fixme", ARG_NONE },
+                       { SWF::ACTION_BITWISEAND, "bit_and", ARG_NONE },
+                       { SWF::ACTION_BITWISEOR, "bit_or", ARG_NONE },
+                       { SWF::ACTION_BITWISEXOR, "bit_xor", ARG_NONE },
+                       { SWF::ACTION_SHIFTLEFT, "shl", ARG_NONE },
+                       { SWF::ACTION_SHIFTRIGHT, "asr", ARG_NONE },
+                       { SWF::ACTION_SHIFTRIGHT2, "lsr", ARG_NONE },
+                       { SWF::ACTION_STRICTEQ, "eq_strict", ARG_NONE },
+                       { SWF::ACTION_GREATERTHEN, "gt_t", ARG_NONE },
+                       { SWF::ACTION_EXTENDS, "extends_fixme", ARG_NONE },
+                       { SWF::ACTION_GOTOFRAME, "goto_frame", ARG_U16 },
+                       { SWF::ACTION_GETURL, "get_url", ARG_STR },
+                       { SWF::ACTION_SETREGISTER, "store_register", ARG_U8 },
+                       { SWF::ACTION_CONSTANTPOOL, "decl_dict", ARG_DECL_DICT 
},
+                       { SWF::ACTION_WAITFORFRAME, "wait_for_frame", ARG_HEX },
+                       { SWF::ACTION_SETTARGET, "set_target", ARG_STR },
+                       { SWF::ACTION_GOTOLABEL, "goto_frame_lbl", ARG_STR },
+                       { SWF::ACTION_WAITFORFRAMEEXPRESSION, 
"wait_for_fr_exp", ARG_HEX },
+                       { SWF::ACTION_DEFINEFUNCTION2, "function2", 
ARG_FUNCTION2 },
+                       { SWF::ACTION_TRY, "try_fixme", ARG_FUNCTION2 },
+                       { SWF::ACTION_WITH, "with", ARG_U16 },
+                       { SWF::ACTION_PUSHDATA, "push_data", ARG_PUSH_DATA },
+                       { SWF::ACTION_BRANCHALWAYS, "goto", ARG_S16 },
+                       { SWF::ACTION_GETURL2, "get_url2", ARG_HEX },
+                       { SWF::ACTION_DEFINEFUNCTION, "func", ARG_HEX },
+                       { SWF::ACTION_BRANCHIFTRUE, "branch_if_true", ARG_S16 },
+                       { SWF::ACTION_CALLFRAME, "call_frame", ARG_HEX },
+                       { SWF::ACTION_GOTOEXPRESSION, "goto_frame_exp", ARG_HEX 
},
+                       { SWF::ACTION_END, "<end>", ARG_NONE }
                };
 
                int     action_id = instruction_data[0];




reply via email to

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