diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-08 09:58:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-08 09:58:25 +0000 |
commit | 04bdcf84328eec8e144b3b9e0a1ee4407d71d594 (patch) | |
tree | 4ca2af8aef6783ba5232d3a920cc7225d0a63404 /gc.c | |
parent | 1022702acf4f25b0d6e11ce5ad6743fbde59bb25 (diff) | |
download | ruby-04bdcf84328eec8e144b3b9e0a1ee4407d71d594.tar.gz |
* parse.y (rb_parser_malloc, rb_parser_free): manage parser stack on
heap. [ruby-list:41199]
* parse.y (ripper_initialize): use rb_respond_to().
* ext/ripper/depend (check): get rid of re-generating ripper.y always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -859,13 +859,11 @@ gc_mark_children(VALUE ptr, int lev) case NODE_BLOCK_ARG: case NODE_POSTEXE: break; -#ifdef C_ALLOCA case NODE_ALLOCA: mark_locations_array((VALUE*)obj->as.node.u1.value, obj->as.node.u3.cnt); ptr = (VALUE)obj->as.node.u2.node; goto again; -#endif default: /* unlisted NODE */ if (is_pointer_to_heap(obj->as.node.u1.node)) { @@ -1192,11 +1190,9 @@ obj_free(VALUE obj) RUBY_CRITICAL(free(RANY(obj)->as.node.u1.tbl)); } break; -#ifdef C_ALLOCA case NODE_ALLOCA: RUBY_CRITICAL(free(RANY(obj)->as.node.u1.node)); break; -#endif } return; /* no need to free iv_tbl */ |