Mercurial > octave
diff src/toplev.cc @ 5765:7ba9ad1fec11
[project @ 2006-04-17 05:05:15 by jwe]
author | jwe |
---|---|
date | Mon, 17 Apr 2006 05:05:17 +0000 |
parents | 1c36a2e82266 |
children | ace8d8d26933 |
line wrap: on
line diff
--- a/src/toplev.cc Sun Apr 16 19:10:01 2006 +0000 +++ b/src/toplev.cc Mon Apr 17 05:05:17 2006 +0000 @@ -33,6 +33,7 @@ #include <fstream> #include <iostream> +#include <sstream> #include <string> #ifdef HAVE_UNISTD_H @@ -46,7 +47,6 @@ #include "file-ops.h" #include "lo-error.h" #include "lo-mappers.h" -#include "lo-sstream.h" #include "oct-env.h" #include "quit.h" #include "str-vec.h" @@ -410,7 +410,7 @@ if (*cmd) { - OSSTREAM output_buf; + std::ostringstream output_buf; // XXX FIXME XXX -- Perhaps we should read more than one // character at a time and find a way to avoid the call to @@ -446,12 +446,8 @@ else cmd_status = 127; - output_buf << OSSTREAM_ENDS; - retval(0) = (double) cmd_status; - retval(1) = OSSTREAM_STR (output_buf); - - OSSTREAM_FREEZE (output_buf); + retval(1) = output_buf.str (); } unwind_protect::run ();