зеркало из https://github.com/github/ruby.git
* 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:
Родитель
d738fed4eb
Коммит
46360975a4
|
@ -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>
|
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)
|
* 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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
static VALUE
|
||||||
rb_big2str0(VALUE x, int base, int trim)
|
rb_big2str1(VALUE x, int base, int trim)
|
||||||
{
|
{
|
||||||
int off;
|
int off;
|
||||||
VALUE ss, xx;
|
VALUE ss, xx;
|
||||||
|
@ -3591,10 +3591,17 @@ rb_big2str0(VALUE x, int base, int trim)
|
||||||
return ss;
|
return ss;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* deprecated */
|
||||||
|
VALUE
|
||||||
|
rb_big2str0(VALUE x, int base, int trim)
|
||||||
|
{
|
||||||
|
return rb_big2str1(x, base, trim);
|
||||||
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_big2str(VALUE x, int base)
|
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_cstr2inum(const char*, int);
|
||||||
VALUE rb_str2inum(VALUE, int);
|
VALUE rb_str2inum(VALUE, int);
|
||||||
VALUE rb_big2str(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);
|
SIGNED_VALUE rb_big2long(VALUE);
|
||||||
#define rb_big2int(x) rb_big2long(x)
|
#define rb_big2int(x) rb_big2long(x)
|
||||||
VALUE rb_big2ulong(VALUE);
|
VALUE rb_big2ulong(VALUE);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче