diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-12 03:41:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-12 03:41:51 +0000 |
commit | 7b4a171158fffbb984378a094e7195072b0a5b05 (patch) | |
tree | 02e1ba5cea0f1ba987e187458ce3edaae3e01c3c /ruby.c | |
parent | e72b71d56a1f369cb7eb3892c61715460bac8109 (diff) | |
download | ruby-7b4a171158fffbb984378a094e7195072b0a5b05.tar.gz |
* eval.c (ruby_exec_node, ruby_run_node), ruby.c (process_options):
use iseq instead of NODE.
* gc.c (source_filenames): removed.
* include/ruby/intern.h, parse.y (yycompile, parser_mark, parser_free,
ripper_initialize): rb_source_filename() is no longer used.
* compile.c, compile.h (ERROR_ARGS), parse.y (node_newnode, fixpos,
parser_warn, e_option_supplied, warn_unless_e_option, range_op,
cond0): nd_file is no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -1103,16 +1103,15 @@ process_options(VALUE arg) return Qtrue; } - if (tree) { - if (opt->do_print) { - tree = rb_parser_append_print(parser, tree); - } - if (opt->do_loop) { - tree = rb_parser_while_loop(parser, tree, opt->do_line, opt->do_split); - } + if (opt->do_print) { + tree = rb_parser_append_print(parser, tree); + } + if (opt->do_loop) { + tree = rb_parser_while_loop(parser, tree, opt->do_line, opt->do_split); } - return (VALUE)tree; + return rb_iseq_new(tree, rb_str_new2("<main>"), + rb_str_new2(opt->script), Qfalse, ISEQ_TYPE_TOP); } static NODE * |