Mercurial > hg > octave-terminal
changeset 3539:ea583bc68959
[project @ 2000-02-02 12:48:09 by jwe]
author | jwe |
---|---|
date | Wed, 02 Feb 2000 12:48:09 +0000 |
parents | 0ff7323dab8b |
children | 6741bef26719 |
files | src/ov-base.cc src/ov-base.h src/ov-cell.h src/pt-unop.cc |
diffstat | 4 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ov-base.cc +++ b/src/ov-base.cc @@ -198,7 +198,7 @@ } Cell -octave_base_value::cell_value (bool) const +octave_base_value::cell_value () const { Cell retval; gripe_wrong_type_arg ("octave_base_value::cell_value()", type_name ());
--- a/src/ov-base.h +++ b/src/ov-base.h @@ -165,7 +165,7 @@ double scalar_value (bool frc_str_conv = false) const { return double_value (frc_str_conv); } - Cell cell_value (bool = false) const; + Cell cell_value (void) const; Matrix matrix_value (bool = false) const;
--- a/src/ov-cell.h +++ b/src/ov-cell.h @@ -74,6 +74,8 @@ bool is_constant (void) const { return true; } + Cell cell_value (void) const { return cell_val; } + void print (std::ostream& os, bool pr_as_read_syntax = false) const; void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const;
--- a/src/pt-unop.cc +++ b/src/pt-unop.cc @@ -69,7 +69,7 @@ if (op) { - if (etype == octave_value::incr || etype == octave_value::decr) + if (etype == octave_value::op_incr || etype == octave_value::op_decr) { octave_lvalue ref = op->lvalue (); @@ -148,7 +148,7 @@ if (op) { - if (etype == octave_value::incr || etype == octave_value::decr) + if (etype == octave_value::op_incr || etype == octave_value::op_decr) { octave_lvalue ref = op->lvalue ();