ruby-changes:44823
From: usa <ko1@a...>
Date: Fri, 25 Nov 2016 05:51:54 +0900 (JST)
Subject: [ruby-changes:44823] usa:r56895 (trunk): use `rb_struct_ptr` for `RSTRUCT_PTR` macro
usa 2016-11-25 05:51:45 +0900 (Fri, 25 Nov 2016) New Revision: 56895 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56895 Log: use `rb_struct_ptr` for `RSTRUCT_PTR` macro * include/ruby/ruby.h (RSTRUCT_PTR): at r55788, `rb_struct_const_ptr` had been hidden and `rb_struct_ptr` had been implemented for backward compatiblity. but the definition of `RSTRUCT_PTR` was not modified to use it, probably by mistake. Modified files: trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 56894) +++ include/ruby/ruby.h (revision 56895) @@ -1181,7 +1181,7 @@ void *rb_check_typeddata(VALUE, const rb https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1181 ((sval) = (type*)rb_check_typeddata((obj), (data_type))) #define RSTRUCT_LEN(st) rb_struct_size(st) -#define RSTRUCT_PTR(st) rb_struct_const_ptr(st) +#define RSTRUCT_PTR(st) rb_struct_ptr(st) #define RSTRUCT_SET(st, idx, v) rb_struct_aset(st, INT2NUM(idx), (v)) #define RSTRUCT_GET(st, idx) rb_struct_aref(st, INT2NUM(idx)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/