diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-18 07:29:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-18 07:29:17 +0000 |
commit | d36c76dc71b47b201707185b8a0b4264e83de205 (patch) | |
tree | df6b3edc1d6715dd11be75675f5ec55c54d3fa11 /include/ruby/vm.h | |
parent | 868684096079f3e786df517714fe6d795c4647b6 (diff) |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@25000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/vm.h')
-rw-r--r-- | include/ruby/vm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ruby/vm.h b/include/ruby/vm.h index 6843469735..27b976dd85 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 */ |