diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-25 08:24:34 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-25 08:24:34 +0000 |
commit | dc626dbab3caaf221c9c7b88a5500ae878615712 (patch) | |
tree | 99208866566aa5511f0fa3d9863f5c0a32e75d7d /enumerator.c | |
parent | d700d340437a4cfba215e51b9045460900c62c3a (diff) | |
download | ruby-dc626dbab3caaf221c9c7b88a5500ae878615712.tar.gz |
* include/ruby/ruby.h: rename RARRAY_RAWPTR() to RARRAY_CONST_PTR().
RARRAY_RAWPTR(ary) returns (const VALUE *) type pointer and
usecase of this macro is not acquire raw pointer, but acquire
read-only pointer. So we rename to better name.
RSTRUCT_RAWPTR() is also renamed to RSTRUCT_CONST_PTR()
(I expect that nobody use it).
* array.c, compile.c, cont.c, enumerator.c, gc.c, proc.c, random.c,
string.c, struct.c, thread.c, vm_eval.c, vm_insnhelper.c:
catch up this change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c index 5794454f16..012a5b036a 100644 --- a/enumerator.c +++ b/enumerator.c @@ -1044,7 +1044,7 @@ enumerator_size(VALUE obj) } if (e->args) { argc = (int)RARRAY_LEN(e->args); - argv = RARRAY_RAWPTR(e->args); + argv = RARRAY_CONST_PTR(e->args); } size = rb_check_funcall(e->size, id_call, argc, argv); if (size != Qundef) return size; |