ruby-changes:29935
From: akr <ko1@a...>
Date: Mon, 15 Jul 2013 14:42:32 +0900 (JST)
Subject: [ruby-changes:29935] akr:r41987 (trunk): * include/ruby/intern.h (rb_big2str0): Deprecated.
akr 2013-07-15 14:42:22 +0900 (Mon, 15 Jul 2013) New Revision: 41987 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41987 Log: * include/ruby/intern.h (rb_big2str0): Deprecated. * bignum.c (rb_big2str1): Renamed from rb_big2str0. (rb_big2str0): Deprecated wrapper for rb_big2str1. (rb_big2str): Invoke rb_big2str1 instead of rb_big2str0. Modified files: trunk/ChangeLog trunk/bignum.c trunk/include/ruby/intern.h Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 41986) +++ include/ruby/intern.h (revision 41987) @@ -101,7 +101,7 @@ VALUE rb_str_to_inum(VALUE, int, int); https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L101 VALUE rb_cstr2inum(const char*, int); VALUE rb_str2inum(VALUE, int); VALUE rb_big2str(VALUE, int); -VALUE rb_big2str0(VALUE, int, int); +DEPRECATED(VALUE rb_big2str0(VALUE, int, int)); SIGNED_VALUE rb_big2long(VALUE); #define rb_big2int(x) rb_big2long(x) VALUE rb_big2ulong(VALUE); Index: ChangeLog =================================================================== --- ChangeLog (revision 41986) +++ ChangeLog (revision 41987) @@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Jul 15 14:40:00 2013 Tanaka Akira <akr@f...> + + * include/ruby/intern.h (rb_big2str0): Deprecated. + + * bignum.c (rb_big2str1): Renamed from rb_big2str0. + (rb_big2str0): Deprecated wrapper for rb_big2str1. + (rb_big2str): Invoke rb_big2str1 instead of rb_big2str0. + Mon Jul 15 14:13:02 2013 Masaki Matsushita <glass.saga@g...> * struct.c (rb_struct_each_pair): use rb_yield_values(2, key, value) Index: bignum.c =================================================================== --- bignum.c (revision 41986) +++ bignum.c (revision 41987) @@ -3540,8 +3540,8 @@ big2str_base_powerof2(VALUE x, size_t le https://github.com/ruby/ruby/blob/trunk/bignum.c#L3540 return result; } -VALUE -rb_big2str0(VALUE x, int base, int trim) +static VALUE +rb_big2str1(VALUE x, int base, int trim) { int off; VALUE ss, xx; @@ -3591,10 +3591,17 @@ rb_big2str0(VALUE x, int base, int trim) https://github.com/ruby/ruby/blob/trunk/bignum.c#L3591 return ss; } +/* deprecated */ +VALUE +rb_big2str0(VALUE x, int base, int trim) +{ + return rb_big2str1(x, base, trim); +} + VALUE rb_big2str(VALUE x, int base) { - return rb_big2str0(x, base, 1); + return rb_big2str1(x, base, 1); } /* -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/