Mercurial > octave
diff libinterp/corefcn/pr-output.cc @ 17866:ea0ecbe2eaf5
display matrix values in GUI workspace viewer (bug #40499)
* pr-output.h, pr-output.cc (octave_print_internal): Provide dummy
versions for char and octave_value objects.
(octave_print_internal (ostream&, double, bool),
octave_print_internal (ostream&, const Complex&, bool)):
Handle print_as_read_syntax.
* ov-base-mat.h, ov-base-mat.cc (octave_base_mat<MT>::short_disp):
New function.
* ov-cell.h, ov-cell.cc (octave_cell::short_disp): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 06 Nov 2013 19:17:59 -0500 |
parents | 3a0075793fcd |
children | 49d573a1deda |
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc Wed Nov 06 18:00:48 2013 -0500 +++ b/libinterp/corefcn/pr-output.cc Wed Nov 06 19:17:59 2013 -0500 @@ -1699,13 +1699,19 @@ } void -octave_print_internal (std::ostream& os, double d, - bool /* pr_as_read_syntax */) +octave_print_internal (std::ostream&, char, bool) { - if (plus_format) - { - pr_plus_format (os, d); - } + panic_impossible (); +} + +void +octave_print_internal (std::ostream& os, double d, + bool pr_as_read_syntax) +{ + if (pr_as_read_syntax) + os << d; + else if (plus_format) + pr_plus_format (os, d); else { set_format (d); @@ -3380,6 +3386,13 @@ panic_impossible (); } +void +octave_print_internal (std::ostream&, const octave_value&, + bool pr_as_read_syntax) +{ + panic_impossible (); +} + DEFUN (rats, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} rats (@var{x}, @var{len})\n\