diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-20 04:19:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-20 04:19:27 +0000 |
commit | 75aa81b79d078ba7d02e097cf53e629d851d874c (patch) | |
tree | 9fea84c313f3158cc73ced2705c13494cfb554ec | |
parent | 8afd39ad09c7a7f9e7cf61c4791d38e6270cc616 (diff) | |
download | ruby-75aa81b79d078ba7d02e097cf53e629d851d874c.tar.gz |
* ruby.c (process_options): --dump option exit immediately.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ruby.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1142,9 +1142,11 @@ process_options(VALUE arg) iseq = rb_iseq_new(tree, rb_str_new2("<main>"), opt->script_name, Qfalse, ISEQ_TYPE_TOP); + if (opt->dump & DUMP_BIT(insns)) { rb_io_write(rb_stdout, ruby_iseq_disasm(iseq)); rb_io_flush(rb_stdout); + return Qtrue; } return iseq; |