mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] obsolete classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16ef24ac08
commit
b9d01e2257
3 changed files with 4 additions and 1 deletions
1
bignum.c
1
bignum.c
|
@ -7115,6 +7115,7 @@ Init_Bignum(void)
|
|||
#ifndef RUBY_INTEGER_UNIFICATION
|
||||
rb_cBignum = rb_cInteger;
|
||||
#endif
|
||||
/* An obsolete class, use Integer */
|
||||
rb_define_const(rb_cObject, "Bignum", rb_cInteger);
|
||||
rb_deprecate_constant(rb_cObject, "Bignum");
|
||||
|
||||
|
|
|
@ -5460,6 +5460,7 @@ Init_Numeric(void)
|
|||
#ifndef RUBY_INTEGER_UNIFICATION
|
||||
rb_cFixnum = rb_cInteger;
|
||||
#endif
|
||||
/* An obsolete class, use Integer */
|
||||
rb_define_const(rb_cObject, "Fixnum", rb_cInteger);
|
||||
rb_deprecate_constant(rb_cObject, "Fixnum");
|
||||
|
||||
|
|
|
@ -7975,7 +7975,8 @@ InitVM_process(void)
|
|||
|
||||
#if defined(HAVE_TIMES) || defined(_WIN32)
|
||||
rb_cProcessTms = rb_struct_define_under(rb_mProcess, "Tms", "utime", "stime", "cutime", "cstime", NULL);
|
||||
rb_define_const(rb_cStruct, "Tms", rb_cProcessTms); /* for the backward compatibility */
|
||||
/* An obsolete name of Process::Tms for the backward compatibility */
|
||||
rb_define_const(rb_cStruct, "Tms", rb_cProcessTms);
|
||||
rb_deprecate_constant(rb_cStruct, "Tms");
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue