Mercurial > hg > octave-lyh
diff src/procstream.cc @ 3563:7031786b3f27
[project @ 2000-02-03 05:55:18 by jwe]
author | jwe |
---|---|
date | Thu, 03 Feb 2000 05:55:18 +0000 |
parents | 9c7e782471d0 |
children | b79da8779a0e |
line wrap: on
line diff
--- a/src/procstream.cc +++ b/src/procstream.cc @@ -35,7 +35,7 @@ pb_init (); if (! pb.open (command, mode)) - std::set (std::ios::badbit); + std::ios::setstate (std::ios::badbit); } void @@ -44,7 +44,7 @@ clear (); if (! pb.open (command, mode)) - std::set (std::ios::badbit); + std::ios::setstate (std::ios::badbit); } int @@ -55,7 +55,7 @@ if (is_open ()) { if (! pb.close ()) - std::set (std::ios::failbit); + std::ios::setstate (std::ios::failbit); status = pb.wait_status (); }