Mercurial > octave-nkf
comparison src/toplev.cc @ 5629:489a475073d7
[project @ 2006-02-20 21:47:12 by jwe]
author | jwe |
---|---|
date | Mon, 20 Feb 2006 21:47:13 +0000 |
parents | 3fadccb05d5d |
children | c2f6b21851b8 |
comparison
equal
deleted
inserted
replaced
5628:53d15d4c8dd7 | 5629:489a475073d7 |
---|---|
191 } | 191 } |
192 } | 192 } |
193 catch (octave_interrupt_exception) | 193 catch (octave_interrupt_exception) |
194 { | 194 { |
195 recover_from_exception (); | 195 recover_from_exception (); |
196 std::cout << "\n"; | 196 octave_stdout << "\n"; |
197 } | 197 } |
198 catch (std::bad_alloc) | 198 catch (std::bad_alloc) |
199 { | 199 { |
200 recover_from_exception (); | 200 recover_from_exception (); |
201 std::cerr | 201 std::cerr |
559 cleanup_tmp_files (); | 559 cleanup_tmp_files (); |
560 | 560 |
561 flush_octave_stdout (); | 561 flush_octave_stdout (); |
562 | 562 |
563 if (! quitting_gracefully && (interactive || forced_interactive)) | 563 if (! quitting_gracefully && (interactive || forced_interactive)) |
564 std::cout << "\n"; | 564 { |
565 octave_stdout << "\n"; | |
566 | |
567 // Yes, we want this to be separate from the call to | |
568 // flush_octave_stdout above. | |
569 | |
570 flush_octave_stdout (); | |
571 } | |
565 } | 572 } |
566 } | 573 } |
567 | 574 |
568 DEFUN (atexit, args, , | 575 DEFUN (atexit, args, , |
569 "-*- texinfo -*-\n\ | 576 "-*- texinfo -*-\n\ |
828 (*__new_handler) (); | 835 (*__new_handler) (); |
829 p = malloc (sz); | 836 p = malloc (sz); |
830 } | 837 } |
831 | 838 |
832 if (debug_new_delete) | 839 if (debug_new_delete) |
833 std::cout << "__builtin_new: " << p << std::endl; | 840 std::cerr << "__builtin_new: " << p << std::endl; |
834 | 841 |
835 return p; | 842 return p; |
836 } | 843 } |
837 | 844 |
838 void | 845 void |
839 __builtin_delete (void *ptr) | 846 __builtin_delete (void *ptr) |
840 { | 847 { |
841 if (debug_new_delete) | 848 if (debug_new_delete) |
842 std::cout << "__builtin_delete: " << ptr << std::endl; | 849 std::cerr << "__builtin_delete: " << ptr << std::endl; |
843 | 850 |
844 if (ptr) | 851 if (ptr) |
845 free (ptr); | 852 free (ptr); |
846 } | 853 } |
847 | 854 |