* 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
This commit is contained in:
nobu 2005-05-10 16:04:52 +00:00
parent 91e758c9d7
commit c3aa92a921
2 changed files with 7 additions and 2 deletions

View File

@ -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> Sun May 8 23:17:47 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk/timer.rb: fix typo. * ext/tk/lib/tk/timer.rb: fix typo.

2
eval.c
View File

@ -2151,7 +2151,7 @@ copy_node_scope(node, rval)
#ifdef C_ALLOCA #ifdef C_ALLOCA
# define TMP_PROTECT NODE * volatile tmp__protect_tmp=0 # define TMP_PROTECT NODE * volatile tmp__protect_tmp=0
# define TMP_ALLOC(n) \ # define TMP_ALLOC(n) \
(tmp__protect_tmp = rb_node_newnode(NODE_ALLOCA, \ (tmp__protect_tmp = NEW_NODE(NODE_ALLOCA, \
ALLOC_N(VALUE,n),tmp__protect_tmp,n), \ ALLOC_N(VALUE,n),tmp__protect_tmp,n), \
(void*)tmp__protect_tmp->nd_head) (void*)tmp__protect_tmp->nd_head)
#else #else