[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/as_environment.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/as_environment.cpp |
Date: |
Thu, 07 Dec 2006 15:26:04 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/12/07 15:26:04
Modified files:
. : ChangeLog
server : as_environment.cpp
Log message:
* server/as_environment.cpp (dump_global_registers):
don't print anything if none of the registers are defined.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1881&r2=1.1882
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_environment.cpp?cvsroot=gnash&r1=1.34&r2=1.35
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1881
retrieving revision 1.1882
diff -u -b -r1.1881 -r1.1882
--- ChangeLog 7 Dec 2006 15:13:33 -0000 1.1881
+++ ChangeLog 7 Dec 2006 15:26:04 -0000 1.1882
@@ -1,5 +1,7 @@
2006-12-07 Sandro Santilli <address@hidden>
+ * server/as_environment.cpp (dump_global_registers):
+ don't print anything if none of the registers are defined.
* testsuite/actionscript.all/String.as:
Added test for SUBSTRIN tag, but only
enabled if MING_SUPPORTS_ASM is defined
Index: server/as_environment.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/as_environment.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- server/as_environment.cpp 7 Dec 2006 14:35:25 -0000 1.34
+++ server/as_environment.cpp 7 Dec 2006 15:26:04 -0000 1.35
@@ -16,7 +16,7 @@
//
-/* $Id: as_environment.cpp,v 1.34 2006/12/07 14:35:25 strk Exp $ */
+/* $Id: as_environment.cpp,v 1.35 2006/12/07 15:26:04 strk Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -500,13 +500,17 @@
void
as_environment::dump_global_registers(std::ostream& out) const
{
- out << "Global registers: ";
+ std::string registers;
+ int defined=0;
for (unsigned int i=0; i<4; ++i)
{
- if (i) out << " | ";
- out << '"' << m_global_register[i].to_string() << '"';
+ if (i) registers += std::string(" | ");
+ registers += std::string("\"") +
+ m_global_register[i].to_std_string() +
+ std::string("\"");
+ if ( ! m_global_register[i].is_undefined() ) defined++;
}
- out << std::endl;
+ if ( defined ) out << "Global registers (" << defined << "): " <<
registers << std::endl;
}
}
- [Gnash-commit] gnash ChangeLog server/as_environment.cpp,
Sandro Santilli <=