aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-15 05:42:22 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-15 05:42:22 +0000
commit46360975a48c321527012b6b43d0eb431ee5a6ba (patch)
treea5e58f527a451749ec9158cee6c1d2892adf6149 /bignum.c
parentd738fed4ebcce9231856dc22c07965ab26744af4 (diff)
downloadruby-46360975a48c321527012b6b43d0eb431ee5a6ba.tar.gz
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/bignum.c b/bignum.c
index 7c75bcf904..2a4f25e987 100644
--- a/bignum.c
+++ b/bignum.c
@@ -3540,8 +3540,8 @@ big2str_base_powerof2(VALUE x, size_t len, int base, int trim)
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)
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);
}
/*