summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-21 10:36:04 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-21 10:36:04 +0000
commit29bf9de0a4971afa6f21c1065e7e8c258f38b33d (patch)
tree47bd36eb7f8aa520b9774a0df9ff20aa7985b5c8 /complex.c
parent34304a667d2560fd7477c80566f5c4c18313e49d (diff)
merges r23744 from trunk into ruby_1_9_1.
-- * complex.c: constant COMPLEX_NAME has been removed. * rational.c: constant RATIONAL_NAME has been removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/complex.c b/complex.c
index 62bc7a6f37..3ae12207d8 100644
--- a/complex.c
+++ b/complex.c
@@ -11,10 +11,6 @@
#define NDEBUG
#include <assert.h>
-#ifndef COMPLEX_NAME
-#define COMPLEX_NAME "Complex"
-#endif
-
#define ZERO INT2FIX(0)
#define ONE INT2FIX(1)
#define TWO INT2FIX(2)
@@ -1399,7 +1395,7 @@ Init_Complex(void)
id_to_r = rb_intern("to_r");
id_to_s = rb_intern("to_s");
- rb_cComplex = rb_define_class(COMPLEX_NAME, rb_cNumeric);
+ rb_cComplex = rb_define_class("Complex", rb_cNumeric);
rb_define_alloc_func(rb_cComplex, nucomp_s_alloc);
rb_undef_method(CLASS_OF(rb_cComplex), "allocate");
@@ -1415,7 +1411,7 @@ Init_Complex(void)
rb_define_singleton_method(rb_cComplex, "rect", nucomp_s_new, -1);
rb_define_singleton_method(rb_cComplex, "polar", nucomp_s_polar, 2);
- rb_define_global_function(COMPLEX_NAME, nucomp_f_complex, -1);
+ rb_define_global_function("Complex", nucomp_f_complex, -1);
rb_undef_method(rb_cComplex, "<");
rb_undef_method(rb_cComplex, "<=");