From 79ec15d4295e0807ae2eb42e1fcd097ba1a2664a Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 28 Oct 2009 16:11:27 +0000 Subject: merges r24684 from trunk into ruby_1_9_1. -- * vm_method.c (rb_remove_method_id): exported. * numeric.c (num_sadded): fix for non-ascii method name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 19a8a3ebb..815de8773 100644 --- a/vm_method.c +++ b/vm_method.c @@ -301,8 +301,8 @@ rb_method_node(VALUE klass, ID id) return rb_get_method_body(klass, id, 0); } -static void -remove_method(VALUE klass, ID mid) +void +rb_remove_method_id(VALUE klass, ID mid) { st_data_t data; NODE *body = 0; @@ -344,6 +344,8 @@ remove_method(VALUE klass, ID mid) } } +#define remove_method(klass, mid) rb_remove_method_id(klass, mid) + void rb_remove_method(VALUE klass, const char *name) { -- cgit