Mercurial > octave-antonio
diff mk-opts.pl @ 5765:7ba9ad1fec11
[project @ 2006-04-17 05:05:15 by jwe]
author | jwe |
---|---|
date | Mon, 17 Apr 2006 05:05:17 +0000 |
parents | ec3ffbf9982b |
children | ace8d8d26933 |
line wrap: on
line diff
--- a/mk-opts.pl Sun Apr 16 19:10:01 2006 +0000 +++ b/mk-opts.pl Mon Apr 17 05:05:17 2006 +0000 @@ -597,7 +597,7 @@ print "static void print_${class_name} (void) { - OSSTREAM buf; + std::ostringstream buf; buf << \"\\n\" << \"Options for $CLASS include:\\n\\n\" @@ -677,11 +677,7 @@ print " }\n\n"; } - print " buf << OSSTREAM_ENDS; - - print_usage (\"$opt_fcn_name\", true, OSSTREAM_STR (buf)); - - OSSTREAM_FREEZE (buf); + print "print_usage (\"$opt_fcn_name\", true, buf.str ()); }\n\n"; }