From e7996eb3cc1687d1f70ea8f78befddf821ad3ff0 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 17 Jun 2011 22:43:38 +0000 Subject: * internal.h: declare internal functions here. * node.h: declare NODE dependent internal functions here. * iseq.h: declare rb_iseq_t dependent internal functions here. * vm_core.h: declare rb_thread_t dependent internal functions here. * bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c, enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c, iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y, proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c, thread.c, time.c, transcode.c, variable.c, vm.c, tool/compile_prelude.rb: don't declare internal functions declared in above headers. include above headers if required. Note that rb_thread_mark() was declared as void rb_thread_mark(rb_thread_t *th) in cont.c but defined as void rb_thread_mark(void *ptr) in vm.c. Now it is declared as the later in internal.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 137504ca7e..d5b8dfd58f 100644 --- a/gc.c +++ b/gc.c @@ -50,8 +50,6 @@ # define VALGRIND_MAKE_MEM_UNDEFINED(p, n) /* empty */ #endif -int rb_io_fptr_finalize(struct rb_io_t*); - #define rb_setjmp(env) RUBY_SETJMP(env) #define rb_jmp_buf rb_jmpbuf_t @@ -2364,8 +2362,6 @@ obj_free(rb_objspace_t *objspace, VALUE obj) #define GC_NOTIFY 0 -void rb_vm_mark(void *ptr); - #if STACK_GROW_DIRECTION < 0 #define GET_STACK_BOUNDS(start, end, appendix) ((start) = STACK_END, (end) = STACK_START) #elif STACK_GROW_DIRECTION > 0 @@ -2406,8 +2402,6 @@ mark_current_machine_context(rb_objspace_t *objspace, rb_thread_t *th) #endif } -void rb_gc_mark_encodings(void); - static void gc_clear_mark_on_sweep_slots(rb_objspace_t *objspace) { -- cgit v1.2.3