changeset 5220:42f9a021aac1

[project @ 2005-03-17 02:58:27 by jwe]
author jwe
date Thu, 17 Mar 2005 02:58:27 +0000
parents 96661dd79291
children 843ac57f254a
files src/ChangeLog src/ov-struct.cc
diffstat 2 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
 2005-03-16  John W. Eaton  <jwe@octave.org>
 
+	* ov-struct.cc (octave_struct::save_ascii): Don't convert Cell
+	object to cs-list.
+	(octave_struct::save_binary): Likewise
+	(octave_struct::save_hdf5): Likewise.
+
 	* DLD-FUNCTIONS/gplot.l (Fset, Fshow): Delete.
 	(F__gnuplot_plot__): Rename from Fgplot.
 	(F__gnuplot_splot__): Rename from Fgsplot.
--- a/src/ov-struct.cc
+++ b/src/ov-struct.cc
@@ -986,8 +986,7 @@
   while (i != m.end ())
     {
       Cell val = map.contents (i);
-      octave_value tmp = (map.numel () == 1) ? val(0) : 
-	octave_value (val, true);
+      octave_value tmp = (map.numel () == 1) ? val(0) : octave_value (val);
 
       bool b = save_ascii_data (os, tmp, m.key (i), infnan_warned, 
 				strip_nan_and_inf, 0, 0);
@@ -1061,8 +1060,7 @@
   while (i != m.end ())
     {
       Cell val = map.contents (i);
-      octave_value tmp = (map.numel () == 1) ? val(0) : 
-	octave_value (val, true);
+      octave_value tmp = (map.numel () == 1) ? val(0) : octave_value (val);
 
       bool b = save_binary_data (os, tmp, m.key (i), "", 0, save_as_floats);
       
@@ -1138,8 +1136,7 @@
   while (i != m.end ())
     {
       Cell val = map.contents (i);
-      octave_value tmp = (map.numel () == 1) ? val(0) : 
-	octave_value (val, true);
+      octave_value tmp = (map.numel () == 1) ? val(0) : octave_value (val);
 
       bool retval2 = add_hdf5_data (data_hid, tmp, m.key (i), "", false, 
 				    save_as_floats);