comparison src/defun.cc @ 4732:b484cdca27be

[project @ 2004-02-04 04:32:48 by jwe]
author jwe
date Wed, 04 Feb 2004 04:32:48 +0000
parents 042cdbb7f317
children 4c8a2e4e0717
comparison
equal deleted inserted replaced
4731:176fcf62c464 4732:b484cdca27be
49 { 49 {
50 std::string h = sym_rec->help (); 50 std::string h = sym_rec->help ();
51 51
52 if (h.length () > 0) 52 if (h.length () > 0)
53 { 53 {
54 octave_stdout << "\n*** " << nm << ":\n\n"; 54 OSSTREAM buf;
55 55
56 display_help_text (octave_stdout, h); 56 buf << "\n*** " << nm << ":\n\n";
57 57
58 octave_stdout << "\n"; 58 display_help_text (buf, h);
59
60 buf << "\n";
59 61
60 if (! just_usage) 62 if (! just_usage)
61 additional_help_message (octave_stdout); 63 additional_help_message (buf);
64
65 buf << OSSTREAM_ENDS;
66
67 defun_usage_message (OSSTREAM_STR (buf));
68
69 OSSTREAM_FREEZE (buf);
62 } 70 }
63 } 71 }
64 else 72 else
65 warning ("no usage message found for `%s'", nm.c_str ()); 73 warning ("no usage message found for `%s'", nm.c_str ());
66 } 74 }