summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-10 16:04:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-10 16:04:52 +0000
commitfc998693f140903a21df055f95110e4fc84a5912 (patch)
treed323fc953068d13b70b07e0951c58e83afe64f21 /eval.c
parentfdeedaa9479aeefa8a63012606bec0df3542d288 (diff)
downloadruby-fc998693f140903a21df055f95110e4fc84a5912.tar.gz
ruby-fc998693f140903a21df055f95110e4fc84a5912.tar.xz
ruby-fc998693f140903a21df055f95110e4fc84a5912.zip
* eval.c (TMP_ALLOC): use macro NEW_NODE() to get rid of warnings on
platforms which have no alloca(). fixed: [ruby-talk:141301] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index c36180c28..e6a927b21 100644
--- a/eval.c
+++ b/eval.c
@@ -2104,8 +2104,8 @@ copy_node_scope(node, rval)
#ifdef C_ALLOCA
# define TMP_PROTECT NODE * volatile tmp__protect_tmp=0
# define TMP_ALLOC(n) \
- (tmp__protect_tmp = rb_node_newnode(NODE_ALLOCA, \
- ALLOC_N(VALUE,n),tmp__protect_tmp,n), \
+ (tmp__protect_tmp = NEW_NODE(NODE_ALLOCA, \
+ ALLOC_N(VALUE,n),tmp__protect_tmp,n), \
(void*)tmp__protect_tmp->nd_head)
#else
# define TMP_PROTECT typedef int foobazzz