ruby-changes:42837
From: yui-knk <ko1@a...>
Date: Wed, 4 May 2016 22:15:35 +0900 (JST)
Subject: [ruby-changes:42837] yui-knk:r54911 (trunk): numeric.c: Remove prototype declarations to internal.h
yui-knk 2016-05-04 23:12:10 +0900 (Wed, 04 May 2016) New Revision: 54911 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54911 Log: numeric.c: Remove prototype declarations to internal.h * numeric.c (fix_plus): Remove rb_nucomp_add prototype declaration. * numeric.c (fix_mul): Remove rb_nucomp_mul prototype declaration. * internal.h (rb_nucomp_add, rb_nucomp_mul): add prototype declarations. Modified files: trunk/ChangeLog trunk/internal.h trunk/numeric.c Index: internal.h =================================================================== --- internal.h (revision 54910) +++ internal.h (revision 54911) @@ -895,6 +895,10 @@ int rb_local_defined(ID, const struct rb https://github.com/ruby/ruby/blob/trunk/internal.h#L895 const char * rb_insns_name(int i); VALUE rb_insns_name_array(void); +/* complex.c */ +VALUE rb_nucomp_add(VALUE, VALUE); +VALUE rb_nucomp_mul(VALUE, VALUE); + /* cont.c */ VALUE rb_obj_is_fiber(VALUE); void rb_fiber_reset_root_local_storage(VALUE); Index: ChangeLog =================================================================== --- ChangeLog (revision 54910) +++ ChangeLog (revision 54911) @@ -1,3 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed May 4 23:13:58 2016 Yuichiro Kaneko <yui-knk@r...> + + * numeric.c (fix_plus): Remove rb_nucomp_add prototype + declaration. + + * numeric.c (fix_mul): Remove rb_nucomp_mul prototype + declaration. + + * internal.h (rb_nucomp_add, rb_nucomp_mul): add prototype + declarations. + Wed May 4 18:38:00 2016 Kazuki Tsujimoto <kazuki@c...> * lib/net/http/header.rb (Net::HTTPHeader#{each_header,each_name, Index: numeric.c =================================================================== --- numeric.c (revision 54910) +++ numeric.c (revision 54911) @@ -3248,7 +3248,6 @@ fix_plus(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3248 return DBL2NUM((double)FIX2LONG(x) + RFLOAT_VALUE(y)); } else if (RB_TYPE_P(y, T_COMPLEX)) { - VALUE rb_nucomp_add(VALUE, VALUE); return rb_nucomp_add(y, x); } else { @@ -3351,7 +3350,6 @@ fix_mul(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3350 return DBL2NUM((double)FIX2LONG(x) * RFLOAT_VALUE(y)); } else if (RB_TYPE_P(y, T_COMPLEX)) { - VALUE rb_nucomp_mul(VALUE, VALUE); return rb_nucomp_mul(y, x); } else { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/