Mercurial > octave-nkf
diff src/load-save.cc @ 4233:ccfdb55c8156
[project @ 2002-12-20 22:43:54 by jwe]
author | jwe |
---|---|
date | Fri, 20 Dec 2002 22:43:55 +0000 |
parents | b032ebd54586 |
children | fc9a075d10fb |
line wrap: on
line diff
--- a/src/load-save.cc Fri Dec 20 01:17:19 2002 +0000 +++ b/src/load-save.cc Fri Dec 20 22:43:55 2002 +0000 @@ -1220,7 +1220,7 @@ } if (retval > 0) - tc = lst; + tc = octave_value (lst); } return retval; @@ -1686,7 +1686,7 @@ d->global = hdf5_check_attr (group_id, "OCTAVE_GLOBAL"); if (is_list) - d->tc = lst; + d->tc = octave_value (lst); else d->tc = m; } @@ -3905,9 +3905,10 @@ Octave_map::iterator i = m.begin (); while (i != m.end ()) { - bool retval2 = add_hdf5_data (data_id, - m.contents (i), m.key (i), "", - false, save_as_floats); + // XXX FIXME XXX -- if the length of the structure array is + // 1, should we really create a list object? + bool retval2 = add_hdf5_data (data_id, octave_value (m.contents (i)), + m.key (i), "", false, save_as_floats); if (! retval2) goto error_cleanup; @@ -4267,9 +4268,11 @@ for (Octave_map::iterator i = m.begin (); i != m.end (); i++) { // write the data of each element - bool retval2 = save_mat5_binary_element (os, m.contents (i), "", - mark_as_global, - save_as_floats); + // XXX FIXME XXX -- if the length of the structure array is + // 1, should we really create a list object? + bool retval2 + = save_mat5_binary_element (os, octave_value (m.contents (i)), + "", mark_as_global, save_as_floats); if (! retval2) goto error_cleanup; @@ -5314,7 +5317,7 @@ void symbols_of_load_save (void) { - DEFVAR (crash_dumps_octave_core, 1.0, crash_dumps_octave_core, + DEFVAR (crash_dumps_octave_core, true, crash_dumps_octave_core, "-*- texinfo -*-\n\ @defvr {Built-in Variable} crash_dumps_octave_core\n\ If this variable is set to a nonzero value, Octave tries to save all\n\