From 503b858cefcc945405185c3c70dd07a60f920469 Mon Sep 17 00:00:00 2001 From: mame Date: Fri, 5 Jan 2018 08:59:20 +0000 Subject: node.h: define rb_ast_body_t and restructure rb_ast_t git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/prelude.c.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'template') diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl index 3cf74eda12..b144f8ab0a 100644 --- a/template/prelude.c.tmpl +++ b/template/prelude.c.tmpl @@ -161,11 +161,11 @@ prelude_eval(VALUE code, VALUE name, int line) }; rb_ast_t *ast = rb_parser_compile_string_path(rb_parser_new(), name, code, line); - if (!ast->root) { + if (!ast->body.root) { rb_ast_dispose(ast); rb_exc_raise(rb_errinfo()); } - rb_iseq_eval(rb_iseq_new_with_opt(ast->root, name, name, Qnil, INT2FIX(line), + rb_iseq_eval(rb_iseq_new_with_opt(ast->body.root, name, name, Qnil, INT2FIX(line), NULL, ISEQ_TYPE_TOP, &optimization)); rb_ast_dispose(ast); } -- cgit v1.2.3