Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
5764:80409c2defcc | 5765:7ba9ad1fec11 |
---|---|
595 ## XXX FIXME XXX -- determine the width of the table automatically. | 595 ## XXX FIXME XXX -- determine the width of the table automatically. |
596 | 596 |
597 print "static void | 597 print "static void |
598 print_${class_name} (void) | 598 print_${class_name} (void) |
599 { | 599 { |
600 OSSTREAM buf; | 600 std::ostringstream buf; |
601 | 601 |
602 buf << \"\\n\" | 602 buf << \"\\n\" |
603 << \"Options for $CLASS include:\\n\\n\" | 603 << \"Options for $CLASS include:\\n\\n\" |
604 << \" keyword value\\n\" | 604 << \" keyword value\\n\" |
605 << \" ------- -----\\n\"; | 605 << \" ------- -----\\n\"; |
675 } | 675 } |
676 | 676 |
677 print " }\n\n"; | 677 print " }\n\n"; |
678 } | 678 } |
679 | 679 |
680 print " buf << OSSTREAM_ENDS; | 680 print "print_usage (\"$opt_fcn_name\", true, buf.str ()); |
681 | |
682 print_usage (\"$opt_fcn_name\", true, OSSTREAM_STR (buf)); | |
683 | |
684 OSSTREAM_FREEZE (buf); | |
685 }\n\n"; | 681 }\n\n"; |
686 } | 682 } |
687 | 683 |
688 sub emit_set_functions | 684 sub emit_set_functions |
689 { | 685 { |