Commit db9aed0e by Jeff Law

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
parent 53e2d849
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment