changeset 3639:fed1847dfd6c

[project @ 2000-03-24 05:12:46 by jwe]
author jwe
date Fri, 24 Mar 2000 05:15:28 +0000
parents a76fa215a476
children d3b0ff09dda7
files src/ChangeLog src/oct-stream.cc
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
 2000-03-23  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros.
+	(do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION,
+	do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead
+	of calling istream::scan directly.
+	(octave_scan): New function.
+	(do_scanf_conv): Second arg is now scanf_format_elt instead of char*.
+	Change all callers.
+
 	* oct-procbuf.h, oct-procbuf.cc (octave_procbuf):
 	Derive from c_file_ptr_buf instead of filebuf.
 
--- a/src/oct-stream.cc
+++ b/src/oct-stream.cc
@@ -1035,6 +1035,8 @@
 
   error ("formatted input only works when Octave is compiled with G++");
 
+  is.setstate (std::ios::failbit);
+
   return is;
 }