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:
parent
53e2d84900
commit
db9aed0ed6
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user