diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-05 12:21:01 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-05 12:21:01 +0000 |
commit | 025cfde57d14b12504595130cb1b222372881143 (patch) | |
tree | 1b4233c4f6e2f26bce12f1815378457fbc2537ee /gc.h | |
parent | 72f2d2a00d8ae3861a15ca92bf9322951a22b6cf (diff) |
* eval_thread.c, common.mk: remove eval_thread.c.
* yarvcore.c: rename cYarvThread to rb_cThread.
* gc.c: remove YARV_* prefix.
* gc.h: add an include guard and prototype of rb_gc_set_stack_end().
* inits.c: fix to ANSI prototype style and reorder Init_*().
* io.c (pipe_finalize): TODO: comment out last_status.
* process.c, yarvcore.h: fix to use yarv_vm_t#last_status instead of
rb_last_status and make last_status_get() to access $?.
* yarvcore.c (vm_mark): mark yarv_vm_t#last_status.
* ruby.h: add declarations of rb_cISeq and rb_cVM.
* thread.c: move eval_thread.c codes to thread.c and remove yarv_*
function prefix.
* thread.c (thread_start_func_2): use yarv_thread_t#first_func if
it is not null.
* vm.c: fix copyright year.
* yarvcore.c (Init_vm): rename to Init_VM().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.h')
-rw-r--r-- | gc.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,4 +1,11 @@ +#ifndef RUBY_GC_H +#define RUBY_GC_H 1 + +NOINLINE(void rb_gc_set_stack_end(VALUE **stack_end_p)); + +/* for GC debug */ + #ifndef MARK_FREE_DEBUG #define MARK_FREE_DEBUG 0 #endif @@ -46,3 +53,5 @@ rb_gc_debug_body(char *mode, char *msg, int st, void *ptr) #define MARK_UNLESS_NULL(ptr) if(ptr){rb_gc_mark(ptr);} #define FREE_UNLESS_NULL(ptr) if(ptr){ruby_xfree(ptr);} +#endif /* RUBY_GC_H */ + |