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 | c3aa92a9213e95807ec5720eb4954a49849d266a (patch) | |
tree | ae4af47a3ac15b750f653420f0efb43d5855f5c0 | |
parent | 91e758c9d755a4fc0deb4701ebe46247a8a6dd2e (diff) |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@8419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed May 11 01:03:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (TMP_ALLOC): use macro NEW_NODE() to get rid of warnings on + platforms which have no alloca(). fixed: [ruby-talk:141301] + Sun May 8 23:17:47 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/tk/timer.rb: fix typo. @@ -2151,8 +2151,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 |