diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-08 21:22:43 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-08 21:22:43 +0000 |
commit | 8dced4d2c0f284bd17a3cb4a4fbed6d459cc71e0 (patch) | |
tree | 3d7836fd4b98251ca69231fd5a0f8088563e7022 /method.h | |
parent | 2324c14d00c301467ac9a3a5fc95d812109e116f (diff) | |
download | ruby-8dced4d2c0f284bd17a3cb4a4fbed6d459cc71e0.tar.gz |
* internal.h: define rb_cref_t and change to use it.
rb_cref_t is data type of CREF. Now, the body is still NODE.
It is easy to understand what is CREF and what is pure NODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r-- | method.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -84,7 +84,7 @@ typedef struct rb_method_definition_struct { union { struct { rb_iseq_t *const iseq; /* should be mark */ - NODE *cref; + rb_cref_t *cref; } iseq_body; rb_method_cfunc_t cfunc; rb_method_attr_t attr; @@ -118,7 +118,7 @@ struct unlinked_method_entry_list_entry { UNDEFINED_METHOD_ENTRY_P((def)->body.orig_me)) void rb_add_method_cfunc(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc, rb_method_flag_t noex); -void rb_add_method_iseq(VALUE klass, ID mid, rb_iseq_t *iseq, NODE *cref, rb_method_flag_t noex); +void rb_add_method_iseq(VALUE klass, ID mid, rb_iseq_t *iseq, rb_cref_t *cref, 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_method_entry(VALUE klass, ID id, VALUE *define_class_ptr); rb_method_entry_t *rb_method_entry_at(VALUE obj, ID id); |