From 03f49cbb326425c0e591152ad5e73c6c89990c1c Mon Sep 17 00:00:00 2001 From: tadf Date: Fri, 19 Jun 2009 11:47:53 +0000 Subject: * 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/trunk@23744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'rational.c') diff --git a/rational.c b/rational.c index 0da742a9b1..ba7d83ba80 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) @@ -2225,7 +2221,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 v1.2.1