Subject: savant update
From: Dale Martin (dmartin@ECECS.UC.EDU)
Date: Wed Oct 31 2001 - 15:30:33 MST
Update of /home/paw/CVS/savant/src/aire/iir/IIRBase
In directory gatekeeper.ececs.uc.edu:/tmp/cvs-serv5804/src/aire/iir/IIRBase
Modified Files:
IIRBase_Comment.cc IIRBase_FloatingPointLiteral.cc
IIRBase_IntegerLiteral.cc IIRBase_TextLiteral.cc
Log Message:
Since the last prerelease, one change I made was to go over to C++ strings
in a big way. I did this for several reasons, the most pertinent being
that C++ strings are reference counted and we don't need to worry about
leaking them.
Likewise, there were plenty of leaks in our code that was using
ostrstream and so I converted all of them to use ostringstream. It turns
out that ostringstream only appears in g++ version 2.95.4 which is quite
new and most people aren't using it yet.
This checkin allows the configure script to determine if the <sstream>
header is available on the system. If it's not, the class
"fake_ostringstream" will be used for ostringstream. The
"fake_ostringstream" class will leak very very badly as it's currently
implemented. It is only there as a temporary stopgap measure until the
use of g++ 2.95.4 and/or g++ 3.0 become more common. So please don't
use this class any place else.
This checkin has only been tested on g++ 2.95.2. I will be checking on
a newer compiler shortly.
This archive was generated by hypermail 2b25 : Mon Mar 18 2002 - 13:00:12 MST