iostream.cc (endl): Verify stream can accept characters before writing its eol.

* iostream.cc (endl): Verify stream can accept characters
        before writing its eol.

From-SVN: r34122
This commit is contained in:
Jeff Law 2000-05-23 22:57:22 -06:00
parent 53e2d84900
commit db9aed0ed6
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue May 23 22:56:56 2000 Jerry Quinn
* iostream.cc (endl): Verify stream can accept characters
before writing its eol.
2000-05-15 David Edelsohn <edelsohn@gnu.org>
* config.shared: Change "pic" to depend on $(PICFLAG), not

View File

@ -963,7 +963,9 @@ ostream& ends(ostream& outs)
ostream& endl(ostream& outs)
{
return flush(outs.put('\n'));
if (opfx)
flush(outs.put('\n'));
return outs;
}
istream& lock(istream& ins)