From 75aa81b79d078ba7d02e097cf53e629d851d874c Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 20 May 2008 04:19:27 +0000 Subject: [PATCH] * 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 --- ruby.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruby.c b/ruby.c index 5fe37ee406..0f587f8459 100644 --- a/ruby.c +++ b/ruby.c @@ -1142,9 +1142,11 @@ process_options(VALUE arg) iseq = rb_iseq_new(tree, rb_str_new2("
"), 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;