diff options
author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2004-06-25 09:41:28 +0000 |
---|---|---|
committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2004-06-25 09:41:28 +0000 |
commit | 212df8f138166ed053d63d6d54e1a1290e395ae5 (patch) | |
tree | cadc9e6eaca1d184b7a69a8b389214d966c4ffb6 /NEWS | |
parent | d9353259d7f48a5497e72a257f2a549ba719bc0c (diff) |
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 'NEWS')
-rw-r--r-- | NEWS | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -1,11 +1,36 @@ New in CppUnit 1.10.4: ---------------------- + +* Portability: + + - Support for embedded visual C++ 4 added. For this purpose, CppUnit now + provides a very simple stream implementation if none is provided. + This should also help porting on other platforms which have STL but + no stream support. Just make sure that CPPUNIT_NO_STREAM is defined + to 1 in your config header. + * Bug Fix: - cppunit.m4: patch #946302, AM_PATH_CPPUNIT doesn't report result if CppUnit is missing. +* (Possible) Compatiblity break: + + - All text output is now done on cout() instead of sometime cerr & + sometime cout depending on the component. + + - OStringStream definition has been removed from Portability.h. This + means that <sstream> is no longer included, and that ostringstream and + string might not be defined. In practice this should have no impact + since those includes have been moved to other CppUnit headers. + +* Notes: + + - CppUnit now uses the alias OStream when refering to std::ostream for + portability. + + New in CppUnit 1.10.2: ---------------------- |