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 | 0e03b00c6157f1f4d0f59855dcf741c710a6fd14 (patch) | |
| tree | 02e1ba5cea0f1ba987e187458ce3edaae3e01c3c /ruby.c | |
| parent | 76417b6bddde585667ee739d01264dd8d15fa491 (diff) | |
| download | ruby-0e03b00c6157f1f4d0f59855dcf741c710a6fd14.tar.gz ruby-0e03b00c6157f1f4d0f59855dcf741c710a6fd14.tar.xz ruby-0e03b00c6157f1f4d0f59855dcf741c710a6fd14.zip | |
* 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: http://svn.ruby-lang.org/repos/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 * |
