Mercurial > hg > octave-lyh
comparison src/help.cc @ 5931:25da9a7d5f6d
[project @ 2006-08-16 06:52:19 by jwe]
author | jwe |
---|---|
date | Wed, 16 Aug 2006 06:52:19 +0000 |
parents | 15b8c2aa2bf5 |
children | 2b065bbbd1c2 |
comparison
equal
deleted
inserted
replaced
5930:a703198cb8b8 | 5931:25da9a7d5f6d |
---|---|
1000 static bool | 1000 static bool |
1001 help_from_file (std::ostream& os, const std::string& nm, bool& symbol_found) | 1001 help_from_file (std::ostream& os, const std::string& nm, bool& symbol_found) |
1002 { | 1002 { |
1003 bool retval = false; | 1003 bool retval = false; |
1004 | 1004 |
1005 std::string h = get_help_from_file (nm, symbol_found, true); | 1005 std::string file; |
1006 | |
1007 std::string h = get_help_from_file (nm, symbol_found, file); | |
1006 | 1008 |
1007 if (h.length () > 0) | 1009 if (h.length () > 0) |
1008 { | 1010 { |
1011 os << nm << " is the file " << file << "\n\n"; | |
1009 display_help_text (os, h); | 1012 display_help_text (os, h); |
1010 os << "\n"; | 1013 os << "\n"; |
1011 retval = true; | 1014 retval = true; |
1012 } | 1015 } |
1013 | 1016 |