gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/asobj/xml.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/asobj/xml.cpp
Date: Wed, 17 Jan 2007 23:06:24 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/01/17 23:06:24

Modified files:
        .              : ChangeLog 
        server/asobj   : xml.cpp 

Log message:
                * server/asobj/xml.cpp: use fn_call interface for
                  function arguments access rather then as_environment one.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2128&r2=1.2129
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/xml.cpp?cvsroot=gnash&r1=1.4&r2=1.5

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2128
retrieving revision 1.2129
diff -u -b -r1.2128 -r1.2129
--- ChangeLog   17 Jan 2007 16:31:30 -0000      1.2128
+++ ChangeLog   17 Jan 2007 23:06:24 -0000      1.2129
@@ -1,3 +1,8 @@
+2007-01-18 Sandro Santilli <address@hidden>
+
+       * server/asobj/xml.cpp: use fn_call interface for
+         function arguments access rather then as_environment one.
+
 2007-01-17 Sandro Santilli <address@hidden>
 
        * macros/gnashpkgtool.m4: accept pkg-config finding for CFLAGS

Index: server/asobj/xml.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/xml.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/xml.cpp        9 Jan 2007 15:14:20 -0000       1.4
+++ server/asobj/xml.cpp        17 Jan 2007 23:06:24 -0000      1.5
@@ -14,7 +14,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-/* $Id: xml.cpp,v 1.4 2007/01/09 15:14:20 rsavoye Exp $ */
+/* $Id: xml.cpp,v 1.5 2007/01/17 23:06:24 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -885,7 +885,7 @@
   
     xml_as_object *xml_obj = (xml_as_object*)fn.this_ptr;
   
-    const std::string filespec = 
fn.env->bottom(fn.first_arg_bottom_index).to_string();
+    std::string filespec = fn.arg(0).to_string(); 
 
     // If the file doesn't exist, don't try to do anything.
     if (stat(filespec.c_str(), &stats) < 0) {
@@ -917,7 +917,7 @@
     if (fn.this_ptr->get_member("onLoad", &method)) {
         //    log_msg("FIXME: Found onLoad!\n");
         fn.env->set_variable("success", true);
-        fn.env->bottom(fn.first_arg_bottom_index) = true;
+        fn.arg(0) = true;
         as_c_function_ptr      func = method.to_c_function();
         if (func) {
            // It's a C function.  Call it.
@@ -1113,7 +1113,7 @@
     
     xml_as_object*     ptr = (xml_as_object*) (as_object*) fn.this_ptr;
     assert(ptr);
-    std::string filespec = 
fn.env->bottom(fn.first_arg_bottom_index).to_string();
+    std::string filespec = fn.arg(0).to_string();
     //fn.result->set(ptr->obj.loaded());
     fn.result->set_bool(ptr->obj.loaded());
 }
@@ -1147,7 +1147,7 @@
     assert(ptr);
 
     if (fn.nargs > 0) {
-      bool deep = fn.env->bottom(fn.first_arg_bottom_index).to_bool();
+      bool deep = fn.arg(0).to_bool(); 
       xml_obj = new xmlnode_as_object;
       xml_obj->set_member("nodeName", as_value().set_null());
       xml_obj->set_member("nodeValue", as_value());
@@ -1168,7 +1168,7 @@
     const char *text;
 
     if (fn.nargs > 0) {
-        text = fn.env->bottom(fn.first_arg_bottom_index).to_string();
+        text = fn.arg(0).to_string(); 
        xml_obj = new xmlnode_as_object;
        xml_obj->set_member("nodeName", as_value(text));
        xml_obj->set_member("nodeValue", as_value());
@@ -1191,7 +1191,7 @@
     const char *text;
 
     if (fn.nargs > 0) {
-        text = fn.env->bottom(fn.first_arg_bottom_index).to_string();
+        text = fn.arg(0).to_string(); 
        xml_obj = new xmlnode_as_object;
        xml_obj->set_member("nodeName", as_value().set_null()); 
        xml_obj->set_member("nodeValue", as_value(text));       
@@ -1243,16 +1243,16 @@
     assert(ptr);
 
     if (fn.nargs > 0) {
-        text = fn.env->bottom(fn.first_arg_bottom_index).to_string();
+        text = fn.arg(0).to_string(); 
        ptr->obj.parseXML(text);
        ptr->obj.setupFrame(ptr, ptr->obj.firstChild(), false);  
     }
     
 #if 1
     if (fn.this_ptr->get_member("onLoad", &method)) {
-        //    log_msg("FIXME: Found onLoad!\n");
+        log_msg("FIXME: Found onLoad!\n");
         fn.env->set_variable("success", true);
-        fn.env->bottom(fn.first_arg_bottom_index) = true;
+       fn.arg(0) = true;
         as_c_function_ptr      func = method.to_c_function();
         if (func) {
            // It's a C function.  Call it.




reply via email to

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