diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-03 19:26:58 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-03 19:26:58 +0000 |
commit | eb6579e6474126b56e32ff8951c2ba5fee064791 (patch) | |
tree | da90cbd8912e5d55f7115bdee4534b40f7c1cd13 /rational.c | |
parent | 6b348951ca25f14088f05f782f1cbc70332d94a6 (diff) | |
download | ruby-eb6579e6474126b56e32ff8951c2ba5fee064791.tar.gz |
* marshal.c: experimental test aborted.
* complex.c: ditto.
* rational.c: ditto.
* include/ruby/intern.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/rational.c b/rational.c index 6fda5a29ce..c4469c8092 100644 --- a/rational.c +++ b/rational.c @@ -1600,16 +1600,6 @@ nurat_marshal_dump(VALUE self) return a; } -#ifdef MARSHAL_OLD_STYLE -/* :nodoc: */ -static VALUE -nurat_marshal__dump(VALUE self, VALUE limit) -{ - VALUE arg = nurat_marshal_dump(self); - return rb_marshal_dump(arg, Qnil); -} -#endif - /* :nodoc: */ static VALUE nurat_marshal_load(VALUE self, VALUE a) @@ -1632,30 +1622,6 @@ nurat_marshal_load(VALUE self, VALUE a) return self; } -#ifdef MARSHAL_LOAD_DIRECT -/* :nodoc: */ -static VALUE -nurat_marshal_load_fake(VALUE self, VALUE a) -{ - rb_raise(rb_eNotImpError, "not implemented"); -} - - VALUE -rb_Rational_marshal_load(VALUE obj, VALUE a) -{ - return nurat_marshal_load(obj, a); -} -#endif - -#ifdef MARSHAL_OLD_STYLE -/* :nodoc: */ -static VALUE -nurat_marshal__load(VALUE klass, VALUE s) -{ - return nurat_marshal_load(nurat_s_alloc(klass), rb_marshal_load(s)); -} -#endif - /* --- */ VALUE @@ -2408,18 +2374,8 @@ Init_Rational(void) rb_define_method(rb_cRational, "to_s", nurat_to_s, 0); rb_define_method(rb_cRational, "inspect", nurat_inspect, 0); -#ifndef MARSHAL_LOAD_DIRECT -#ifndef MARSHAL_OLD_STYLE rb_define_method(rb_cRational, "marshal_dump", nurat_marshal_dump, 0); rb_define_method(rb_cRational, "marshal_load", nurat_marshal_load, 1); -#else - rb_define_method(rb_cRational, "_dump", nurat_marshal__dump, 1); - rb_define_singleton_method(rb_cRational, "_load", nurat_marshal__load, 1); -#endif -#else - rb_define_method(rb_cRational, "marshal_dump", nurat_marshal_dump, 0); - rb_define_method(rb_cRational, "marshal_load", nurat_marshal_load_fake, 1); -#endif /* --- */ |