]> git.wincent.com - wikitext.git/commit
Make parser struct participate in Ruby's Garbage Collection
authorWincent Colaiuta <win@wincent.com>
Fri, 8 May 2009 14:49:04 +0000 (16:49 +0200)
committerWincent Colaiuta <win@wincent.com>
Fri, 8 May 2009 14:49:04 +0000 (16:49 +0200)
commit37022dfd0f835521a78e529903d81a96841b3c60
treefd0f55883e37060b7080fb0a69c681d3f722d789
parent3a92f5090e4407d6753194b5c9ad3a0c49a641e3
Make parser struct participate in Ruby's Garbage Collection

Instead of having individual str_t and ary_t members participate
in Ruby's mark-and-sweep Garbage Collection, put the parser
struct on the stack and make the parser participate; it will
be responsible for cleaning up its own member resources when
it falls out of scope.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c