From 19ddfc2483bb82cfb241a58d4b25956f7b79d1ad Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 2 Aug 2012 11:34:19 +0000 Subject: * eval.c (rb_mod_using): new method Module#using. [experimental] * eval.c (rb_mod_refine): new method Module#refine. [experimental] * eval.c (f_using): new method Kernel#using. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'node.h') diff --git a/node.h b/node.h index 16343c78c3..42a24c279d 100644 --- a/node.h +++ b/node.h @@ -190,6 +190,8 @@ enum node_type { #define NODE_COLON2 NODE_COLON2 NODE_COLON3, #define NODE_COLON3 NODE_COLON3 + NODE_CREF, +#define NODE_CREF NODE_CREF NODE_DOT2, #define NODE_DOT2 NODE_DOT2 NODE_DOT3, @@ -263,9 +265,10 @@ typedef struct RNode { #define RNODE(obj) (R_CAST(RNode)(obj)) -/* 0..4:T_TYPES, 5:reserved, 6:reserved, 7:NODE_FL_NEWLINE */ +/* 0..4:T_TYPES, 5:reserved, 6:NODE_FL_CREF_OMOD_SHARED, 7:NODE_FL_NEWLINE */ #define NODE_FL_NEWLINE (((VALUE)1)<<7) #define NODE_FL_CREF_PUSHED_BY_EVAL NODE_FL_NEWLINE +#define NODE_FL_CREF_OMOD_SHARED (((VALUE)1)<<6) #define NODE_TYPESHIFT 8 #define NODE_TYPEMASK (((VALUE)0x7f)<flags=((RNODE(n)->flags&~(-1<