mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
provide backward compatibilities
* complex.c (Init_Complex): provide the feature for backward compatibility. * rational.c (Init_Rational): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f024d46f11
commit
9261f25e0f
2 changed files with 4 additions and 0 deletions
|
@ -2209,6 +2209,8 @@ Init_Complex(void)
|
|||
*/
|
||||
rb_define_const(rb_cComplex, "I",
|
||||
f_complex_new_bang2(rb_cComplex, ZERO, ONE));
|
||||
|
||||
rb_provide("complex.so"); /* for backward compatibility */
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -2614,6 +2614,8 @@ Init_Rational(void)
|
|||
rb_define_method(rb_cString, "to_r", string_to_r, 0);
|
||||
|
||||
rb_define_private_method(CLASS_OF(rb_cRational), "convert", nurat_s_convert, -1);
|
||||
|
||||
rb_provide("rational.so"); /* for backward compatibility */
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue