From 2c64283b7cce90823911e01803e6dc49c47ff98e Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 21 Jun 2009 10:36:04 +0000 Subject: 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'rational.c') diff --git a/rational.c b/rational.c index c3938adf1..70f7f1628 100644 --- a/rational.c +++ b/rational.c @@ -16,10 +16,6 @@ #define NDEBUG #include -#ifndef RATIONAL_NAME -#define RATIONAL_NAME "Rational" -#endif - #define ZERO INT2FIX(0) #define ONE INT2FIX(1) #define TWO INT2FIX(2) @@ -1568,7 +1564,7 @@ Init_Rational(void) ml = (long)(log(DBL_MAX) / log(2.0) - 1); - rb_cRational = rb_define_class(RATIONAL_NAME, rb_cNumeric); + rb_cRational = rb_define_class("Rational", rb_cNumeric); rb_define_alloc_func(rb_cRational, nurat_s_alloc); rb_undef_method(CLASS_OF(rb_cRational), "allocate"); @@ -1580,7 +1576,7 @@ Init_Rational(void) rb_undef_method(CLASS_OF(rb_cRational), "new"); #endif - rb_define_global_function(RATIONAL_NAME, nurat_f_rational, -1); + rb_define_global_function("Rational", nurat_f_rational, -1); rb_define_method(rb_cRational, "numerator", nurat_numerator, 0); rb_define_method(rb_cRational, "denominator", nurat_denominator, 0); -- cgit