aboutsummaryrefslogtreecommitdiffstats
path: root/node.h
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 08:59:20 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 08:59:20 +0000
commit503b858cefcc945405185c3c70dd07a60f920469 (patch)
tree10996cd780b341156b2fb3526e77f682f6581f0d /node.h
parenta6794c4b01ceb96d3d36f8854309e2e3b878f7e3 (diff)
downloadruby-503b858cefcc945405185c3c70dd07a60f920469.tar.gz
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
Diffstat (limited to 'node.h')
-rw-r--r--node.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/node.h b/node.h
index aa16a1f93f..f0ddf58d57 100644
--- a/node.h
+++ b/node.h
@@ -467,12 +467,15 @@ RUBY_SYMBOL_EXPORT_BEGIN
typedef struct node_buffer_struct node_buffer_t;
/* T_IMEMO/ast */
+typedef struct rb_ast_body_struct {
+ const NODE *root;
+ VALUE reserved;
+} rb_ast_body_t;
typedef struct rb_ast_struct {
VALUE flags;
- VALUE reserved1;
- const NODE *root;
node_buffer_t *node_buffer;
VALUE mark_ary;
+ rb_ast_body_t body;
} rb_ast_t;
rb_ast_t *rb_ast_new();
void rb_ast_mark(rb_ast_t*);