Mercurial > hg > octave-lyh
diff src/input.cc @ 963:28f5711477b3
[project @ 1994-12-09 18:59:03 by jwe]
author | jwe |
---|---|
date | Fri, 09 Dec 1994 18:59:03 +0000 |
parents | 4ff94e765921 |
children | dfe01093f657 |
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