summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-15 07:57:07 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-15 07:57:07 +0000
commit068170e47ac498d4c905bae04fe55c5addf05d64 (patch)
treee924cfdb7d42babbfe13f49e1ecc29a002a55480 /class.c
parent42fd4ff686071388417a5533a6d86d75f89ecbdc (diff)
* 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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/class.c b/class.c
index 4b93841d9f..298161860f 100644
--- a/class.c
+++ b/class.c
@@ -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