comparison src/ov-list.cc @ 6974:9e32bb109980

[project @ 2007-10-08 11:06:47 by jwe]
author jwe
date Mon, 08 Oct 2007 11:06:48 +0000
parents 5d4ce539004f
children 93c65f2a5668
comparison
equal deleted inserted replaced
6973:6fcc2f5b2c7d 6974:9e32bb109980
536 536
537 return retval; 537 return retval;
538 } 538 }
539 539
540 bool 540 bool
541 octave_list::save_ascii (std::ostream& os, bool& infnan_warned) 541 octave_list::save_ascii (std::ostream& os)
542 { 542 {
543 octave_value_list lst = list_value (); 543 octave_value_list lst = list_value ();
544 os << "# length: " << lst.length () << "\n"; 544 os << "# length: " << lst.length () << "\n";
545 545
546 for (int i = 0; i < lst.length (); ++i) 546 for (int i = 0; i < lst.length (); ++i)
549 549
550 std::ostringstream buf; 550 std::ostringstream buf;
551 buf << "_" << i; 551 buf << "_" << i;
552 std::string s = buf.str (); 552 std::string s = buf.str ();
553 553
554 bool b = save_ascii_data (os, lst (i), s.c_str (), infnan_warned, 554 bool b = save_ascii_data (os, lst (i), s.c_str (), false, 0);
555 false, 0);
556 555
557 if (! b) 556 if (! b)
558 return false; 557 return false;
559 } 558 }
560 559