Mercurial > hg > octave-lojdl
changeset 963:28f5711477b3
[project @ 1994-12-09 18:59:03 by jwe]
author | jwe |
---|---|
date | Fri, 09 Dec 1994 18:59:03 +0000 |
parents | 22277a269bbb |
children | 9c2b69170142 |
files | src/input.cc |
diffstat | 1 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -790,15 +790,24 @@ if (debug) goto again; else - return retval; + { + if (read_as_string) + return ""; + else + return Matrix (); + } } if (match_sans_spaces ("exit", input_buf) || match_sans_spaces ("quit", input_buf) || match_sans_spaces ("return", input_buf)) - return tree_constant (); + { + return retval; + } else if (read_as_string) - retval = input_buf; + { + retval = input_buf; + } else { int parse_status = 0; @@ -809,7 +818,7 @@ retval.eval (1); } else - retval = tree_constant (Matrix ()); + retval = Matrix (); } } else