diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-04 16:02:01 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-04 16:02:01 +0000 |
commit | 3619a8b52d876469193b3cecaa80d7ff13f09002 (patch) | |
tree | 9a2558aace8851c813640d209942f0b2633bee87 /method.h | |
parent | 9d0fc5a8192655f76ad296363c387242f6fe4b6f (diff) | |
download | ruby-3619a8b52d876469193b3cecaa80d7ff13f09002.tar.gz |
* method.h: constify rb_method_refined_t::orig_me.
Also constify the following functions.
* rb_resolve_refined_method()
* rb_method_entry_with_refinements()
* rb_method_entry_without_refinements()
* rb_method_entry_copy()'s parameter.
* class.c: catch up this fix.
* vm_insnhelper.c: ditto.
* vm_method.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r-- | method.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -78,7 +78,7 @@ typedef struct rb_method_alias_struct { } rb_method_alias_t; typedef struct rb_method_refined_struct { - struct rb_method_entry_struct *orig_me; + const struct rb_method_entry_struct *orig_me; } rb_method_refined_t; typedef struct rb_method_definition_struct { @@ -120,13 +120,13 @@ rb_method_entry_t *rb_add_method(VALUE klass, ID mid, rb_method_type_t type, voi rb_method_entry_t *rb_method_entry(VALUE klass, ID id, VALUE *define_class_ptr); rb_method_entry_t *rb_method_entry_at(VALUE obj, ID id); void rb_add_refined_method_entry(VALUE refined_class, ID mid); -rb_method_entry_t *rb_resolve_refined_method(VALUE refinements, - const rb_method_entry_t *me, - VALUE *defined_class_ptr); -rb_method_entry_t *rb_method_entry_with_refinements(VALUE klass, ID id, - VALUE *defined_class_ptr); -rb_method_entry_t *rb_method_entry_without_refinements(VALUE klass, ID id, - VALUE *defined_class_ptr); +const rb_method_entry_t *rb_resolve_refined_method(VALUE refinements, + const rb_method_entry_t *me, + VALUE *defined_class_ptr); +const rb_method_entry_t *rb_method_entry_with_refinements(VALUE klass, ID id, + VALUE *defined_class_ptr); +const rb_method_entry_t *rb_method_entry_without_refinements(VALUE klass, ID id, + VALUE *defined_class_ptr); rb_method_entry_t *rb_method_entry_get_without_cache(VALUE klass, ID id, VALUE *define_class_ptr); rb_method_entry_t *rb_method_entry_set(VALUE klass, ID mid, const rb_method_entry_t *, rb_method_visibility_t noex); @@ -144,7 +144,7 @@ void rb_sweep_method_entry(void *vm); rb_method_entry_t *rb_method_entry_create(ID called_id, VALUE klass, rb_method_definition_t *def); rb_method_entry_t *rb_method_entry_clone(const rb_method_entry_t *me); -void rb_method_entry_copy(rb_method_entry_t *dst, rb_method_entry_t *src); +void rb_method_entry_copy(rb_method_entry_t *dst, const rb_method_entry_t *src); void rb_scope_visibility_set(rb_method_visibility_t); |