summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-18 07:29:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-18 07:29:17 +0000
commitd482ac18c5cb70a3f888f335cd9a32b196a558bc (patch)
treedf6b3edc1d6715dd11be75675f5ec55c54d3fa11 /include
parent1a1fb4309ac4ad58c9fb169d775f813c395f53fb (diff)
downloadruby-d482ac18c5cb70a3f888f335cd9a32b196a558bc.tar.gz
ruby-d482ac18c5cb70a3f888f335cd9a32b196a558bc.tar.xz
ruby-d482ac18c5cb70a3f888f335cd9a32b196a558bc.zip
* common.mk (eval.o): needs vm.h.
* eval.c (ruby_cleanup): destruct current VM before exit. * gc.c (rb_objspace_free): free object space. * vm.c (ruby_vm_destruct): destruct and free VM struct. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/vm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ruby/vm.h b/include/ruby/vm.h
index 684346973..27b976dd8 100644
--- a/include/ruby/vm.h
+++ b/include/ruby/vm.h
@@ -19,4 +19,10 @@
* http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/mvm/
*/
+/* VM type declaration */
+typedef struct rb_vm_struct ruby_vm_t;
+
+/* core API */
+int ruby_vm_destruct(ruby_vm_t *vm);
+
#endif /* RUBY_VM_H */