diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-10 16:04:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-10 16:04:52 +0000 |
commit | fc998693f140903a21df055f95110e4fc84a5912 (patch) | |
tree | d323fc953068d13b70b07e0951c58e83afe64f21 /eval.c | |
parent | fdeedaa9479aeefa8a63012606bec0df3542d288 (diff) | |
download | ruby-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |