aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-04-28 23:01:03 +0000
committerMike Buland <eichlan@xagasoft.com>2008-04-28 23:01:03 +0000
commit2a49987a29270e14b5a9396b0ab3b7b4588770c3 (patch)
treeedb5cb767632323ef288451f38d669e0b2feba4e /src/tests
parentd416848a9c212bf0503ec5b9de4cd23449ecd73c (diff)
downloadlibbu++-2a49987a29270e14b5a9396b0ab3b7b4588770c3.tar.gz
libbu++-2a49987a29270e14b5a9396b0ab3b7b4588770c3.tar.bz2
libbu++-2a49987a29270e14b5a9396b0ab3b7b4588770c3.tar.xz
libbu++-2a49987a29270e14b5a9396b0ab3b7b4588770c3.zip
Apparently there were a number of things that weren't strict ISO C++, the new
version of gcc complained about them, none of these changes will break backward compatibility, so I fixed them. I added more docs too, it seems.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/fstring.cpp2
-rw-r--r--src/tests/itoqueue1.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/fstring.cpp b/src/tests/fstring.cpp
index f4dfc52..43de18f 100644
--- a/src/tests/fstring.cpp
+++ b/src/tests/fstring.cpp
@@ -116,7 +116,7 @@ void doTimings()
116} 116}
117 117
118#define pem printf("---------\n%08X: %s\n%08X: %s\n", (unsigned int)str.getStr(), str.getStr(), (unsigned int)str2.getStr(), str2.getStr() ); 118#define pem printf("---------\n%08X: %s\n%08X: %s\n", (unsigned int)str.getStr(), str.getStr(), (unsigned int)str2.getStr(), str2.getStr() );
119int main( int argc, char *argv ) 119int main( int argc, char *argv[] )
120{ 120{
121 Bu::FString fs1; 121 Bu::FString fs1;
122 for( int j = 0; j < 500000; j++ ) fs1 += (char)('a'+(j%26)); 122 for( int j = 0; j < 500000; j++ ) fs1 += (char)('a'+(j%26));
diff --git a/src/tests/itoqueue1.cpp b/src/tests/itoqueue1.cpp
index 58c1602..41a0276 100644
--- a/src/tests/itoqueue1.cpp
+++ b/src/tests/itoqueue1.cpp
@@ -8,6 +8,7 @@
8#include <string> 8#include <string>
9#include "bu/ito.h" 9#include "bu/ito.h"
10#include "bu/itoqueue.h" 10#include "bu/itoqueue.h"
11#include <stdlib.h>
11 12
12class Reader : public Bu::Ito 13class Reader : public Bu::Ito
13{ 14{