# HG changeset patch # User jwe # Date 786950399 0 # Node ID b0bb56a7ddcc943cb18c4e32a3acf351641ecc48 # Parent a2545afe2093b9c0c3515e5deec83a6f67c71c4c [project @ 1994-12-09 05:19:59 by jwe] diff -r a2545afe2093 -r b0bb56a7ddcc src/tc-rep.cc --- a/src/tc-rep.cc Wed Dec 07 16:58:17 1994 +0000 +++ b/src/tc-rep.cc Fri Dec 09 05:19:59 1994 +0000 @@ -1667,63 +1667,60 @@ if (error_state) return; - if (print) - { - ostrstream output_buf; + ostrstream output_buf; - switch (type_tag) - { - case scalar_constant: - octave_print_internal (output_buf, scalar); - break; + switch (type_tag) + { + case scalar_constant: + octave_print_internal (output_buf, scalar); + break; + + case matrix_constant: + octave_print_internal (output_buf, *matrix); + break; - case matrix_constant: - octave_print_internal (output_buf, *matrix); - break; - - case complex_scalar_constant: - octave_print_internal (output_buf, *complex_scalar); - break; + case complex_scalar_constant: + octave_print_internal (output_buf, *complex_scalar); + break; - case complex_matrix_constant: - octave_print_internal (output_buf, *complex_matrix); - break; + case complex_matrix_constant: + octave_print_internal (output_buf, *complex_matrix); + break; - case string_constant: - output_buf << string << "\n"; - break; + case string_constant: + output_buf << string << "\n"; + break; - case range_constant: - octave_print_internal (output_buf, *range); - break; + case range_constant: + octave_print_internal (output_buf, *range); + break; - case map_constant: + case map_constant: + { + output_buf << "first (); p != 0; a_map->next (p)) { - output_buf << "first (); p != 0; a_map->next (p)) + if (first) { - if (first) - { - output_buf << ":"; - first = 0; - } - output_buf << " " << a_map->key (p); + output_buf << ":"; + first = 0; } - output_buf << ">\n"; + output_buf << " " << a_map->key (p); } - break; + output_buf << ">\n"; + } + break; - case unknown_constant: - case magic_colon: - case all_va_args: - panic_impossible (); - break; - } + case unknown_constant: + case magic_colon: + case all_va_args: + panic_impossible (); + break; + } - output_buf << ends; - maybe_page_output (output_buf); - } + output_buf << ends; + maybe_page_output (output_buf); } void