Mercurial > hg > octave-lyh
changeset 3949:294f13627ee8
[project @ 2002-05-23 01:22:11 by jwe]
author | jwe |
---|---|
date | Thu, 23 May 2002 01:22:11 +0000 |
parents | 126177939aae |
children | 9be12c29c7d5 |
files | src/debug.cc |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/debug.cc +++ b/src/debug.cc @@ -49,7 +49,7 @@ #include "unwind-prot.h" #include "variables.h" -octave_user_function * +static octave_user_function * get_user_function (std::string str = "") { octave_user_function *dbg_fcn = NULL; @@ -75,9 +75,7 @@ } } else if (curr_function) - { - dbg_fcn = curr_function; - } + dbg_fcn = curr_function; return dbg_fcn; } @@ -172,6 +170,7 @@ std::string symbol_name = ""; std::string line_number; + int line = -1; int nargin = args.length (); @@ -311,7 +310,7 @@ // Copied and modified from the do_type command in help.cc // Maybe we could share some code? void -do_dbtype(std::ostream& os, const std::string& name, int start, int end) +do_dbtype (std::ostream& os, const std::string& name, int start, int end) { std::string ff = fcn_file_in_path (name); @@ -343,10 +342,10 @@ } } else - os << "unable to open `" << ff << "' for reading!\n"; + os << "dbtype: unable to open `" << ff << "' for reading!\n"; } else - os << "unkown function"; + os << "dbtype: unkown function"; }