From 7da3ea811e71bcf2445fe63608b15645ef205240 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 18 Jun 2011 03:49:33 +0000 Subject: * method.h, internal.h iseq.h: declare internal functions. * compile.c, eval.c, iseq.c, object.c, parse.y, proc.c, process.c, thread.c, vm.c, vm_eval.c, vm_insnhelper.c, vm_method.c: don't declare internal functions. Note that rb_method_entry_eq() is defined in vm_method.c but there was a declaration in proc.c with different const-ness. Now it is declared in method.h with same const-ness to the definition. * object.c (rb_mod_module_exec): don't declare functions declared in include/ruby/intern.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 83026d8f33..a28bd8edb0 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1,5 +1,5 @@ /* - * This file is included by vm.h + * This file is included by vm.c */ #define CACHE_SIZE 0x800 @@ -188,7 +188,6 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type, old_def->alias_count == 0 && old_def->type != VM_METHOD_TYPE_UNDEF && old_def->type != VM_METHOD_TYPE_ZSUPER) { - extern rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc); rb_iseq_t *iseq = 0; rb_warning("method redefined; discarding old %s", rb_id2name(mid)); -- cgit v1.2.3