diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-17 10:34:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-17 10:34:30 +0000 |
commit | 86db656415a2e05b573d95d813d6ca5a26b55d07 (patch) | |
tree | 379c349bd378072c2907f4e6579b677573a2e087 /node.h | |
parent | 3a20ed532b57da1e58287a5c53abe14400a085f4 (diff) |
* node.h (NODE_ATTRASGN): new node, assignment to attribute.
[ruby-core:00637].
* eval.c (is_defined, rb_eval): ditto.
* parse.y (attrset, node_assign): ditto.
* string.c (rb_str_substr): tail sharing. [ruby-core:00650]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -123,6 +123,7 @@ enum node_type { NODE_MEMO, NODE_IFUNC, NODE_DSYM, + NODE_ATTRASGN, NODE_LAST }; @@ -332,6 +333,7 @@ typedef struct RNode { #define NEW_POSTEXE() rb_node_newnode(NODE_POSTEXE,0,0,0) #define NEW_DMETHOD(b) rb_node_newnode(NODE_DMETHOD,0,0,b) #define NEW_BMETHOD(b) rb_node_newnode(NODE_BMETHOD,0,0,b) +#define NEW_ATTRASGN(r,m,a) rb_node_newnode(NODE_ATTRASGN,r,m,a) #define NOEX_PUBLIC 0 #define NOEX_NOSUPER 1 |