summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-27 09:31:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-27 09:31:11 +0000
commit84255e0485b1d7b6eef6d82f330f4f671b3f23fc (patch)
tree560352f8441f6e97af74f3960fb3b33813fbfc01 /vm_method.c
parenta20bd463a809aff8707acdeb90e8569b144e01d3 (diff)
* vm_method.c (rb_remove_method_id): exported.
* numeric.c (num_sadded): fix for non-ascii method name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/vm_method.c b/vm_method.c
index 4a94504ca5..d7111935b0 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -100,12 +100,14 @@ rb_clear_cache_by_class(VALUE klass)
}
}
-VALUE rb_f_notimplement(int argc, VALUE *argv, VALUE obj)
+VALUE
+rb_f_notimplement(int argc, VALUE *argv, VALUE obj)
{
rb_notimplement();
}
-static void rb_define_notimplement_method_id(VALUE mod, ID id, rb_method_flag_t noex)
+static void
+rb_define_notimplement_method_id(VALUE mod, ID id, rb_method_flag_t noex)
{
rb_add_method(mod, id, VM_METHOD_TYPE_NOTIMPLEMENTED, 0, noex);
}
@@ -324,8 +326,8 @@ rb_method_entry(VALUE klass, ID id)
return rb_get_method_entry(klass, id);
}
-static void
-remove_method(VALUE klass, ID mid)
+void
+rb_remove_method_id(VALUE klass, ID mid)
{
st_data_t data;
rb_method_entry_t *me = 0;
@@ -367,6 +369,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)
{