diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-26 05:05:27 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-26 05:05:27 +0000 |
commit | 29085b2b0bb178f43e73a8e52f51a126a32e8fa4 (patch) | |
tree | 5a0669b8637f797e81d4e84e685b43139f21f648 | |
parent | ee5999b88c9614baa610ba64e1b6483d0f973a8e (diff) | |
download | ruby-29085b2b0bb178f43e73a8e52f51a126a32e8fa4.tar.gz ruby-29085b2b0bb178f43e73a8e52f51a126a32e8fa4.tar.xz ruby-29085b2b0bb178f43e73a8e52f51a126a32e8fa4.zip |
* ext/bigfloat/bigfloat.c: Fix the initializer's function name
according to the new library name. (pointed out by nobu)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ext/bigfloat/bigfloat.c | 22 |
2 files changed, 8 insertions, 21 deletions
@@ -1,3 +1,8 @@ +Tue Mar 26 14:00:17 2002 Akinori MUSHA <knu@iDaemons.org> + + * ext/bigfloat/bigfloat.c: Fix the initializer's function name + according to the new library name. (pointed out by nobu) + Tue Mar 26 11:12:01 2002 Minero Aoki <aamine@loveruby.net> * lib/fileutils.rb: new file. @@ -8,7 +13,7 @@ Tue Mar 26 03:23:50 2002 Tanaka Akira <akr@m17n.org> Tue Mar 26 01:48:01 2002 Akinori MUSHA <knu@iDaemons.org> - * ext/bigfloat/extconf.rb: Downcase the module name. (BigFloat.so + * ext/bigfloat/extconf.rb: Downcase the library name. (BigFloat.so -> bigfloat.so) * ext/bigfloat/bigfloat.c (BigFloat_inspect): Alter the inspect diff --git a/ext/bigfloat/bigfloat.c b/ext/bigfloat/bigfloat.c index 253f4b709..7ba7dfd53 100644 --- a/ext/bigfloat/bigfloat.c +++ b/ext/bigfloat/bigfloat.c @@ -65,24 +65,6 @@ VALUE rb_cBigfloat; */ #define USE_XFREE -/* - * To builtin BIGFLOAT into ruby -#define BUILTIN_BIGFLOAT - * and modify inits.c to call Init_Bigfloat(). - * Class name for builtin BIGFLOAT is "Bigfloat". - * Class name for ext. library is "BigFloat". - */ -#ifdef BUILTIN_BIGFLOAT -/* Builtin BIGFLOAT */ -#define BIGFLOAT_CLASS_NAME "Bigfloat" -#define BIGFLOAT Init_Bigfloat -#else -/* In case of ext. library */ -#define BIGFLOAT_CLASS_NAME "BigFloat" -#define BIGFLOAT Init_BigFloat -#endif /* BUILTIN_BIGFLOAT */ -#define Initialize(x) x() - /* * Uncomment if you need Float's Inf NaN instead of BigFloat's. * @@ -219,7 +201,7 @@ do_coerce(x, y) } void -Initialize(BIGFLOAT) +Init_bigfloat() { /* Initialize VP routines */ @@ -228,7 +210,7 @@ Initialize(BIGFLOAT) coerce = rb_intern("coerce"); /* Class and method registration */ - rb_cBigfloat = rb_define_class(BIGFLOAT_CLASS_NAME,rb_cNumeric); + rb_cBigfloat = rb_define_class("BigFloat", rb_cNumeric); /* Class methods */ rb_define_singleton_method(rb_cBigfloat, "mode", BigFloat_mode, 2); |