mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* method.h, vm_method.c (rb_free_method_entry): constify a parameter.
* vm_method.c (rb_unlink_method_entry): constify a parameter. * vm_core.h: remove useless declaration about rb_unlink_method_entry(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cc09968d71
commit
9cf6751f83
4 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
Sun May 31 03:26:58 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* method.h, vm_method.c (rb_free_method_entry): constify a parameter.
|
||||
|
||||
* vm_method.c (rb_unlink_method_entry): constify a parameter.
|
||||
|
||||
* vm_core.h: remove useless declaration about rb_unlink_method_entry().
|
||||
|
||||
Sat May 30 18:05:02 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/tempfile.rb (Remover#call): fixed wrong condition. introduced at
|
||||
|
|
2
method.h
2
method.h
|
@ -140,7 +140,7 @@ VALUE rb_mod_method_location(VALUE mod, ID id);
|
|||
VALUE rb_obj_method_location(VALUE obj, ID id);
|
||||
|
||||
void rb_mark_method_entry(const rb_method_entry_t *me);
|
||||
void rb_free_method_entry(rb_method_entry_t *me);
|
||||
void rb_free_method_entry(const rb_method_entry_t *me);
|
||||
void rb_sweep_method_entry(void *vm);
|
||||
|
||||
#endif /* METHOD_H */
|
||||
|
|
|
@ -953,7 +953,6 @@ void rb_vm_gvl_destroy(rb_vm_t *vm);
|
|||
VALUE rb_vm_call(rb_thread_t *th, VALUE recv, VALUE id, int argc,
|
||||
const VALUE *argv, const rb_method_entry_t *me,
|
||||
VALUE defined_class);
|
||||
void rb_unlink_method_entry(rb_method_entry_t *me);
|
||||
void rb_gc_mark_unlinked_live_method_entries(void *pvm);
|
||||
|
||||
void rb_thread_start_timer_thread(void);
|
||||
|
|
|
@ -193,10 +193,10 @@ release_method_definition(rb_method_definition_t *def)
|
|||
}
|
||||
|
||||
void
|
||||
rb_free_method_entry(rb_method_entry_t *me)
|
||||
rb_free_method_entry(const rb_method_entry_t *me)
|
||||
{
|
||||
release_method_definition(me->def);
|
||||
xfree(me);
|
||||
xfree((void *)me);
|
||||
}
|
||||
|
||||
static inline rb_method_entry_t *search_method(VALUE klass, ID id, VALUE *defined_class_ptr);
|
||||
|
|
Loading…
Add table
Reference in a new issue