diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-15 07:57:07 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-15 07:57:07 +0000 |
commit | 068170e47ac498d4c905bae04fe55c5addf05d64 (patch) | |
tree | e924cfdb7d42babbfe13f49e1ecc29a002a55480 /class.c | |
parent | 42fd4ff686071388417a5533a6d86d75f89ecbdc (diff) | |
download | ruby-068170e47ac498d4c905bae04fe55c5addf05d64.tar.gz |
* object.c (rb_mod_le): returns nil if two classes/modules are not
in class-superclass relationship.
* object.c (rb_mod_cmp): uses new rb_mod_le() behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -564,8 +564,8 @@ rb_class_instance_methods(argc, argv, mod) rb_scan_args(argc, argv, "01", &recur); if (argc == 0) { -#if RUBY_RELEASE_CODE < 20040101 - rb_warn("instance_methods parameter will default to 'true' in Jan 2004"); +#if RUBY_VERSION_CODE < 181 + rb_warn("instance_methods parameter will default to 'true' after 1.8.1"); #else recur = Qtrue; #endif @@ -583,8 +583,8 @@ rb_class_protected_instance_methods(argc, argv, mod) rb_scan_args(argc, argv, "01", &recur); if (argc == 0) { -#if RUBY_RELEASE_CODE < 20040101 - rb_warn("protected_instance_methods parameter will default to 'true' in Jan 2004"); +#if RUBY_VERSION_CODE < 181 + rb_warn("protected_instance_methods parameter will default to 'true' after 1.8.1"); #else recur = Qtrue; #endif @@ -602,8 +602,8 @@ rb_class_private_instance_methods(argc, argv, mod) rb_scan_args(argc, argv, "01", &recur); if (argc == 0) { -#if RUBY_RELEASE_CODE < 20040101 - rb_warn("private_instance_methods parameter will default to 'true' in Jan 2004"); +#if RUBY_VERSION_CODE < 181 + rb_warn("private_instance_methods parameter will default to 'true' after 1.8.1"); #else recur = Qtrue; #endif @@ -621,8 +621,8 @@ rb_class_public_instance_methods(argc, argv, mod) rb_scan_args(argc, argv, "01", &recur); if (argc == 0) { -#if RUBY_RELEASE_CODE < 20040101 - rb_warn("public_instance_methods parameter will default to 'true' in Jan 2004"); +#if RUBY_VERSION_CODE < 181 + rb_warn("public_instance_methods parameter will default to 'true' after 1.8.1"); #else recur = Qtrue; #endif @@ -641,8 +641,8 @@ rb_obj_singleton_methods(argc, argv, obj) rb_scan_args(argc, argv, "01", &recur); if (argc == 0) { -#if RUBY_RELEASE_CODE < 20040101 - rb_warn("singleton_methods parameter will default to 'true' in Jan 2004"); +#if RUBY_VERSION_CODE < 181 + rb_warn("singleton_methods parameter will default to 'true' after 1.8.1"); #else recur = Qtrue; #endif |