diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | ext/mathn/complex/complex.c | 2 | ||||
-rw-r--r-- | ext/mathn/rational/rational.c | 2 |
3 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,11 @@ +Mon Oct 27 20:03:05 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * ext/mathn/complex/complex.c: no need to define rb_cComplex because + it's already defined at $(srcdir)/complex.c. + + * ext/mathn/rational/rational.c: no need to define rb_cRational because + it's already defined at $(srcdir)/rational.c. + Mon Oct 27 15:58:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * ruby.c (load_file): preserves $.. [ruby-dev:36937] diff --git a/ext/mathn/complex/complex.c b/ext/mathn/complex/complex.c index 5a24c6a351..01ce7d3ca8 100644 --- a/ext/mathn/complex/complex.c +++ b/ext/mathn/complex/complex.c @@ -24,7 +24,9 @@ #define ONE INT2FIX(1) #define TWO INT2FIX(2) +#if 0 VALUE rb_cComplex; +#endif static ID id_abs, id_abs2, id_arg, id_cmp, id_conj, id_convert, id_denominator, id_divmod, id_equal_p, id_expt, id_floor, id_hash, diff --git a/ext/mathn/rational/rational.c b/ext/mathn/rational/rational.c index 7a169f4329..68f471260c 100644 --- a/ext/mathn/rational/rational.c +++ b/ext/mathn/rational/rational.c @@ -30,7 +30,9 @@ #define ONE INT2FIX(1) #define TWO INT2FIX(2) +#if 0 VALUE rb_cRational; +#endif static ID id_abs, id_cmp, id_convert, id_equal_p, id_expt, id_floor, id_format, id_hash, id_idiv, id_inspect, id_integer_p, id_negate, |