mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d738fed4eb
commit
46360975a4
3 changed files with 19 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
Mon Jul 15 14:40:00 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* struct.c (rb_struct_each_pair): use rb_yield_values(2, key, value)
|
||||
|
|
13
bignum.c
13
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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -101,7 +101,7 @@ VALUE rb_str_to_inum(VALUE, int, int);
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue