Mercurial > octave-dspies
diff src/parse.y @ 5931:25da9a7d5f6d
[project @ 2006-08-16 06:52:19 by jwe]
author | jwe |
---|---|
date | Wed, 16 Aug 2006 06:52:19 +0000 |
parents | 27771d9cd4f4 |
children | 51cbaa2539f4 |
line wrap: on
line diff
--- a/src/parse.y Tue Aug 15 06:06:16 2006 +0000 +++ b/src/parse.y Wed Aug 16 06:52:19 2006 +0000 @@ -3141,11 +3141,11 @@ std::string get_help_from_file (const std::string& nm, bool& symbol_found, - bool include_file_info) + std::string& file) { std::string retval; - std::string file = fcn_file_in_path (nm); + file = fcn_file_in_path (nm); if (! file.empty ()) { @@ -3159,9 +3159,6 @@ retval = gobble_leading_white_space (fptr, true, true, false); - if (! retval.empty () && include_file_info) - retval = nm + " is the file: " + file + "\n\n" + retval; - unwind_protect::run (); } } @@ -3169,6 +3166,13 @@ return retval; } +std::string +get_help_from_file (const std::string& nm, bool& symbol_found) +{ + std::string file; + return get_help_from_file (nm, symbol_found, file); +} + static int is_function_file (FILE *ffile) {