gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ming_ut...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ming_ut...
Date: Wed, 07 Nov 2007 17:25:05 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/11/07 17:25:05

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: ming_utils.c 

Log message:
                * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): 
don't
                  use printf to write the code into a buffer, just make the 
code a
                  const static const C-string.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4795&r2=1.4796
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/ming_utils.c?cvsroot=gnash&r1=1.31&r2=1.32

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4795
retrieving revision 1.4796
diff -u -b -r1.4795 -r1.4796
--- ChangeLog   7 Nov 2007 16:15:17 -0000       1.4795
+++ ChangeLog   7 Nov 2007 17:25:04 -0000       1.4796
@@ -1,5 +1,11 @@
 2007-11-07 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): don't
+         use printf to write the code into a buffer, just make the code a
+         const static const C-string.
+
+2007-11-07 Sandro Santilli <address@hidden>
+
        * testsuite/misc-ming.all/DrawingApiTest.as: Add Udo's example drawing
          and associated hitTest tests (xfailing)
        * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: Add pixel checking

Index: testsuite/misc-ming.all/ming_utils.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/ming_utils.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- testsuite/misc-ming.all/ming_utils.c        8 Oct 2007 06:33:54 -0000       
1.31
+++ testsuite/misc-ming.all/ming_utils.c        7 Nov 2007 17:25:04 -0000       
1.32
@@ -166,10 +166,7 @@
 static SWFAction
 get_dejagnu_actions()
 {
-       static const size_t BUFLEN = 4096;
-
-       char buf[BUFLEN];
-       snprintf(buf, BUFLEN,
+       static const char *buf = 
                "TestState = function() {\n"
                " this.passed = 0;\n"
                " this.failed = 0;\n"
@@ -282,8 +279,7 @@
                "_root.xtotals = function(exp, info) {\n"
                " _root.runtest.xtotals(exp, info);\n"
                "};\n"
-               "_root.dejagnu_module_initialized = 1;\n"
-       );
+               "_root.dejagnu_module_initialized = 1;\n";
 
        return compileSWFActionCode(buf);
 }




reply via email to

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