summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-23 02:16:43 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-23 02:16:43 (GMT)
commitb9d01e225723b3dfb6e18d0dcb790c20fef78d63 (patch)
treea1bcc3af9840f7d9c9fabd1988a11b696970e347
parent16ef24ac0862e84f2c0edd58eba1d44f59c63f00 (diff)
[DOC] obsolete classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bignum.c1
-rw-r--r--numeric.c1
-rw-r--r--process.c3
3 files changed, 4 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index f806558..96488b4 100644
--- a/bignum.c
+++ b/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");
diff --git a/numeric.c b/numeric.c
index c5ff98b..01856c7 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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");
diff --git a/process.c b/process.c
index a09c3e1..70a2eef 100644
--- a/process.c
+++ b/process.c
@@ -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