summaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 16:11:27 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 16:11:27 +0000
commit79ec15d4295e0807ae2eb42e1fcd097ba1a2664a (patch)
tree5cb9b3663f1f8bffc52296d2b777ea1501b75a3a /vm_method.c
parent06bcd6884fe9783d6f1f7e6988bb5d9e21320929 (diff)
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
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c6
1 files changed, 4 insertions, 2 deletions
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)
{