summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-27 11:07:37 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-27 11:07:37 +0000
commit46f8afdc56c29dbd5e18ed910f8418f49f854dc5 (patch)
tree54f2b8f6dd96dd42bf1cf9d33fb9b571a1f1ca7c /ext
parent85101b76259d62e03a746524bf75c77f1fb302b7 (diff)
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/mathn/complex/complex.c2
-rw-r--r--ext/mathn/rational/rational.c2
2 files changed, 4 insertions, 0 deletions
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,