diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-04 20:25:09 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-04 20:25:09 +0000 |
commit | b4d7d616d9ad8d94df0563f06318c7b9a6a80269 (patch) | |
tree | 69415217a5f465a8531c209ccd9843b41f95b560 /method.h | |
parent | 7a17dca09f5390041535876d0fdb327ff6658492 (diff) | |
download | ruby-b4d7d616d9ad8d94df0563f06318c7b9a6a80269.tar.gz |
* method.h, vm_method.c: rename some internal functions related to
rb_method_entry_t.
rb_add_method_me() -> rb_method_entry_set().
rb_get_method_entry() -> rb_method_entry_without_cache().
rb_gc_mark_method_entry() -> rb_mark_method_entry().
* class.c, proc.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r-- | method.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -83,12 +83,14 @@ typedef struct rb_method_entry_struct { void rb_add_method_cfunc(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc, rb_method_flag_t noex); rb_method_entry_t *rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *option, rb_method_flag_t noex); -rb_method_entry_t *rb_add_method_me(VALUE klass, ID mid, const rb_method_entry_t *, rb_method_flag_t noex); rb_method_entry_t *rb_method_entry(VALUE klass, ID id); -rb_method_entry_t *rb_get_method_entry(VALUE klass, ID id); -#define rb_method_entry_without_cache(klass, id) rb_get_method_entry((klass), (id)) + +rb_method_entry_t *rb_method_entry_get_without_cache(VALUE klass, ID id); +rb_method_entry_t *rb_method_entry_set(VALUE klass, ID mid, const rb_method_entry_t *, rb_method_flag_t noex); + int rb_method_entry_arity(const rb_method_entry_t *me); -void rb_gc_mark_method_entry(const rb_method_entry_t *me); + +void rb_mark_method_entry(const rb_method_entry_t *me); void rb_free_method_entry(rb_method_entry_t *me); #endif /* METHOD_H */ |