summaryrefslogtreecommitdiff
path: root/include/cppunit
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2004-06-25 09:54:47 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2004-06-25 09:54:47 +0000
commit4481c860b0c1a419fa55aa7dfbfd06e84d2a1704 (patch)
tree85df98c5574e80bc824d64ed44d118f0d9561981 /include/cppunit
parent212df8f138166ed053d63d6d54e1a1290e395ae5 (diff)
downloadcppunit-4481c860b0c1a419fa55aa7dfbfd06e84d2a1704.tar.gz
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 <string> 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 <iostream> -> #include <cppunit/Portability/Stream.h> 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.
Diffstat (limited to 'include/cppunit')
-rw-r--r--include/cppunit/config/Makefile.am1
-rw-r--r--include/cppunit/portability/Makefile.am3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/cppunit/config/Makefile.am b/include/cppunit/config/Makefile.am
index f1f71a3..4ef0646 100644
--- a/include/cppunit/config/Makefile.am
+++ b/include/cppunit/config/Makefile.am
@@ -2,6 +2,7 @@ libcppunitincludedir = $(includedir)/cppunit/config
libcppunitinclude_HEADERS = \
config-bcb5.h \
+ config-evc4.h \
config-mac.h \
config-msvc6.h \
SelectDllLoader.h \
diff --git a/include/cppunit/portability/Makefile.am b/include/cppunit/portability/Makefile.am
index 1fb032e..3c578e3 100644
--- a/include/cppunit/portability/Makefile.am
+++ b/include/cppunit/portability/Makefile.am
@@ -5,4 +5,5 @@ libcppunitinclude_HEADERS = \
CppUnitMap.h \
CppUnitSet.h \
CppUnitStack.h \
- CppUnitVector.h
+ CppUnitVector.h \
+ Stream.h