# HG changeset patch # User jwe # Date 1022116931 0 # Node ID 294f13627ee88828bf83a9af077d49e93d72e6d0 # Parent 126177939aae02d0853e0acab9a8b5a4dfcfb5ba [project @ 2002-05-23 01:22:11 by jwe] diff --git a/src/debug.cc b/src/debug.cc --- 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"; }