summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/node.c b/node.c
index 4070bec825..d0288beead 100644
--- a/node.c
+++ b/node.c
@@ -1062,6 +1062,18 @@ rb_gc_free_node(VALUE obj)
}
}
+void
+rb_node_init(NODE *n, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
+{
+ VALUE klass = 0;
+ n->flags = T_NODE;
+ RBASIC_SET_CLASS_RAW((VALUE)n, klass);
+ n->u1.value = a0;
+ n->u2.value = a1;
+ n->u3.value = a2;
+ nd_set_type(n, type);
+}
+
size_t
rb_node_memsize(VALUE obj)
{