|
From: <ric...@us...> - 2011-10-21 23:11:00
|
Revision: 1161
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1161&view=rev
Author: rich_sposato
Date: 2011-10-21 23:10:53 +0000 (Fri, 21 Oct 2011)
Log Message:
-----------
Now calls functions that print directly to cout.
Modified Paths:
--------------
trunk/test/SafeFormat/main.cpp
Modified: trunk/test/SafeFormat/main.cpp
===================================================================
--- trunk/test/SafeFormat/main.cpp 2011-10-21 23:09:48 UTC (rev 1160)
+++ trunk/test/SafeFormat/main.cpp 2011-10-21 23:10:53 UTC (rev 1161)
@@ -177,7 +177,7 @@
string result;
unsigned int i = 1;
signed short ss = 2;
- float f = 3.4;
+ float f = 3.4F;
const char * message = " over here! ";
const char * format = "";
@@ -365,13 +365,13 @@
// ----------------------------------------------------------------------------
-void * DoLokiPrintfLoop( void * p )
+void * DoLokiFPrintfLoop( void * p )
{
const unsigned int threadIndex = reinterpret_cast< unsigned int >( p );
for ( unsigned int loop = 0; loop < 10; ++loop )
{
- ::Loki::Printf( "Loop: [%u] Thread: [%u]\n" )( loop )( threadIndex );
+ ::Loki::FPrintf( "Loop: [%u] Thread: [%u]\n" )( loop )( threadIndex );
}
return 0;
@@ -379,13 +379,13 @@
// ----------------------------------------------------------------------------
-void * DoLokiFPrintfLoop( void * p )
+void * DoLokiPrintfLoop( void * p )
{
const unsigned int threadIndex = reinterpret_cast< unsigned int >( p );
for ( unsigned int loop = 0; loop < 10; ++loop )
{
- ::Loki::FPrintf( cout, "Loop: [%u] Thread: [%u]\n" )( loop )( threadIndex );
+ ::Loki::Printf( "Loop: [%u] Thread: [%u]\n" )( loop )( threadIndex );
}
return 0;
@@ -393,13 +393,13 @@
// ----------------------------------------------------------------------------
-void * DoCoutLoop( void * p )
+void * DoStdOutLoop( void * p )
{
const unsigned int threadIndex = reinterpret_cast< unsigned int >( p );
for ( unsigned int loop = 0; loop < 10; ++loop )
{
- cout << "Loop: [" << loop << "] Thread: [" << threadIndex << "]\n";
+ printf( "Loop: [%d] Thread: [%d]\n", loop, threadIndex );
}
return 0;
@@ -407,13 +407,13 @@
// ----------------------------------------------------------------------------
-void * DoStdOutLoop( void * p )
+void * DoCoutLoop( void * p )
{
const unsigned int threadIndex = reinterpret_cast< unsigned int >( p );
for ( unsigned int loop = 0; loop < 10; ++loop )
{
- printf( "Loop: [%d] Thread: [%d]\n", loop, threadIndex );
+ cout << "Loop: [" << loop << "] Thread: [" << threadIndex << "]\n";
}
return 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|