diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-22 04:04:31 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-22 04:04:31 +0000 |
| commit | 79dba1caf31384c1be29522c0f6b9ad2380a7575 (patch) | |
| tree | f50352fa8ee3a8cfc470a0c2001ec6ce614f3acb /ruby.c | |
| parent | e751c451200c809c35bb952cfe14252efbb530ad (diff) | |
| download | ruby-79dba1caf31384c1be29522c0f6b9ad2380a7575.tar.gz ruby-79dba1caf31384c1be29522c0f6b9ad2380a7575.tar.xz ruby-79dba1caf31384c1be29522c0f6b9ad2380a7575.zip | |
* eval.c (ruby_options): evaluator now expects iseq instead of tree.
* ruby.c (ruby_process_options): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
| -rw-r--r-- | ruby.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1791,7 +1791,7 @@ ruby_process_options(int argc, char **argv) { struct cmdline_arguments args; struct cmdline_options opt; - NODE *tree; + VALUE iseq; ruby_script(argv[0]); /* for the time being */ rb_argv0 = rb_str_new4(rb_progname); @@ -1801,10 +1801,10 @@ ruby_process_options(int argc, char **argv) args.opt = cmdline_options_init(&opt); opt.ext.enc.index = -1; opt.intern.enc.index = -1; - tree = (NODE *)rb_vm_call_cfunc(rb_vm_top_self(), + iseq = rb_vm_call_cfunc(rb_vm_top_self(), process_options, (VALUE)&args, 0, rb_progname); - return tree; + return (void*)(struct RData*)iseq; } void |
