diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-27 09:31:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-27 09:31:11 +0000 |
commit | 4cb7e542e57510fed7a432654aee33faafce2c51 (patch) | |
tree | 560352f8441f6e97af74f3960fb3b33813fbfc01 /vm_method.c | |
parent | 6f2c904544abc8e6f8762a1fed4d462966bdf374 (diff) | |
download | ruby-4cb7e542e57510fed7a432654aee33faafce2c51.tar.gz ruby-4cb7e542e57510fed7a432654aee33faafce2c51.tar.xz ruby-4cb7e542e57510fed7a432654aee33faafce2c51.zip |
* 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/trunk@24684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vm_method.c b/vm_method.c index 4a94504ca..d7111935b 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) { |