gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog libbase/log.cpp libbase/log.h


From: Bastiaan Jacques
Subject: [Gnash-commit] gnash ChangeLog libbase/log.cpp libbase/log.h
Date: Sat, 23 Sep 2006 18:49:56 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Bastiaan Jacques <bjacques>     06/09/23 18:49:56

Modified files:
        .              : ChangeLog 
        libbase        : log.cpp log.h 

Log message:
        * libbase/log{.cpp, .h}: Implement LogFile << unsigned long, so the 
build will succeed for platforms where size_t is defined to unsigned long.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.907&r2=1.908
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/log.cpp?cvsroot=gnash&r1=1.26&r2=1.27
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/log.h?cvsroot=gnash&r1=1.21&r2=1.22

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.907
retrieving revision 1.908
diff -u -b -r1.907 -r1.908
--- ChangeLog   23 Sep 2006 16:26:55 -0000      1.907
+++ ChangeLog   23 Sep 2006 18:49:55 -0000      1.908
@@ -1,3 +1,9 @@
+2006-09-23 Bastiaan Jacques <address@hidden>
+
+       * libbase/log{.cpp, .h}: Implement LogFile << unsigned long, so the
+       build will succeed for platforms where size_t is defined to unsigned
+       long.
+
 2006-09-23 Vitaly Alexeev <address@hidden>
 
        * server/sprite_instance.cpp, gnash.h,

Index: libbase/log.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/log.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- libbase/log.cpp     20 Sep 2006 10:04:04 -0000      1.26
+++ libbase/log.cpp     23 Sep 2006 18:49:55 -0000      1.27
@@ -36,7 +36,7 @@
 //
 //
 
-/* $Id: log.cpp,v 1.26 2006/09/20 10:04:04 nihilus Exp $ */
+/* $Id: log.cpp,v 1.27 2006/09/23 18:49:55 bjacques Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -426,6 +426,23 @@
     return *this;
 }
 
+/// \brief print an unsigned long
+LogFile&
+LogFile::operator << (unsigned long x)
+{
+    if (_verbose) {
+       cout << x;
+    }
+
+    if (_write) {
+       _outstream << x;
+    }
+
+    _state = INPROGRESS;
+
+    return *this;
+}
+
 /// \brief print a float
 LogFile&
 LogFile::operator << (float x)

Index: libbase/log.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/log.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- libbase/log.h       20 Sep 2006 10:04:04 -0000      1.21
+++ libbase/log.h       23 Sep 2006 18:49:55 -0000      1.22
@@ -35,7 +35,7 @@
 // 
 //
 
-/* $Id: log.h,v 1.21 2006/09/20 10:04:04 nihilus Exp $ */
+/* $Id: log.h,v 1.22 2006/09/23 18:49:55 bjacques Exp $ */
 
 #ifndef GNASH_LOG_H
 #define GNASH_LOG_H
@@ -95,6 +95,7 @@
     LogFile& operator << (int x);
     LogFile& operator << (long x);
     LogFile& operator << (unsigned int x);
+    LogFile& operator << (unsigned long x);
     // These both resolve to an unsigned int.
     // LogFile& operator << (size_t x);
     // LogFile& operator << (time_t x);




reply via email to

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