mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
node.h: remove NODE_PRIVATE_RECV
* compile.c (private_recv_p): check by node type, instead of a magic number. * node.h (NODE_PRIVATE_RECV), parse.y (attrset_gen): remove git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
199f814f32
commit
fd8b254705
4 changed files with 10 additions and 17 deletions
2
node.h
2
node.h
|
@ -465,8 +465,6 @@ typedef struct RNode {
|
|||
#define NEW_PRELUDE(p,b) NEW_NODE(NODE_PRELUDE,p,b,0)
|
||||
#define NEW_MEMO(a,b,c) NEW_NODE(NODE_MEMO,a,b,c)
|
||||
|
||||
#define NODE_PRIVATE_RECV ((NODE *)1)
|
||||
|
||||
#define roomof(x, y) ((sizeof(x) + sizeof(y) - 1) / sizeof(y))
|
||||
#define MEMO_FOR(type, value) ((type *)RARRAY_PTR(value))
|
||||
#define NEW_MEMO_FOR(type, value) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue