aboutsummaryrefslogtreecommitdiffstats
path: root/complex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-22 08:01:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-22 08:01:42 +0000
commit9261f25e0fadc0d0e5124b2f4b3b5549f56f7ad0 (patch)
treef74e339b31ffc5eef3737b572551090b5083b5bb /complex.c
parentf024d46f1155b0e9e6d767636f0ce8a9ca2efc65 (diff)
downloadruby-9261f25e0fadc0d0e5124b2f4b3b5549f56f7ad0.tar.gz
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
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/complex.c b/complex.c
index 6b14ae6907..b65bc8a61c 100644
--- a/complex.c
+++ b/complex.c
@@ -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 */
}
/*