From 07996b853a4b796ea6867f7c4a1b36a625cc8390 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Fri, 25 Jun 2004 10:13:58 +0000 Subject: Include/cppunit/Portability. include/cppunit/Portability.h: moved OStringStream alias definition to Portability/Stream.h. User need to define EVC4 to indicate that config-evc4.h should be used. (how to we detect this automatically ?). Notes that this means it might be needed to add #include to some headers since its no longer included by Portability.h. * include/cppunit/Portability/Stream.h: define alias OStringStream, stdCOut(), and OFileStream. If CPPUNIT_NO_STREAM is defined (evc4 config), then provides our own implementation (based on sprintf and fwrite). * include/cppunit/config/config-evc4.h: config file for embedded visual c++ 4. Still need to detect for this platform in Portability.h (currently relying on EVC4 being defined...) * *.[cpp/h]: most source files have been impacted with the following change: #include -> #include std::ostream -> CPPUNIT_NS::OStream std::ofstream -> CPPUNIT_NS::OFileStream std::cout -> CPPUNIT_NS::stdCOut() std::endl -> "\n" Also, code using std::cin as been defined out if CPPUNIT_NO_STREAM was defined. The exact list of impact files can be obtain in CVS using tags: TG_CPPUNIT_NO_STREAM_BEFORE & TG_CPPUNIT_NO_STREAM_AFTER. --- src/cppunit/BriefTestProgressListener.cpp | 2 +- src/cppunit/StringTools.cpp | 2 +- src/cppunit/TextTestProgressListener.cpp | 2 +- src/cppunit/TextTestResult.cpp | 2 +- src/cppunit/TextTestRunner.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cppunit') diff --git a/src/cppunit/BriefTestProgressListener.cpp b/src/cppunit/BriefTestProgressListener.cpp index 639d622..c38cea0 100644 --- a/src/cppunit/BriefTestProgressListener.cpp +++ b/src/cppunit/BriefTestProgressListener.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include CPPUNIT_NS_BEGIN diff --git a/src/cppunit/StringTools.cpp b/src/cppunit/StringTools.cpp index 130543c..dc995d8 100644 --- a/src/cppunit/StringTools.cpp +++ b/src/cppunit/StringTools.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include diff --git a/src/cppunit/TextTestProgressListener.cpp b/src/cppunit/TextTestProgressListener.cpp index 55aca05..7fa92ce 100644 --- a/src/cppunit/TextTestProgressListener.cpp +++ b/src/cppunit/TextTestProgressListener.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include CPPUNIT_NS_BEGIN diff --git a/src/cppunit/TextTestResult.cpp b/src/cppunit/TextTestResult.cpp index b498af8..871eb6d 100644 --- a/src/cppunit/TextTestResult.cpp +++ b/src/cppunit/TextTestResult.cpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include CPPUNIT_NS_BEGIN diff --git a/src/cppunit/TextTestRunner.cpp b/src/cppunit/TextTestRunner.cpp index e8087bf..c898bad 100644 --- a/src/cppunit/TextTestRunner.cpp +++ b/src/cppunit/TextTestRunner.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include -- cgit v1.2.1