summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-28 14:23:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-28 14:23:12 +0000
commitf0a534a7f758146ec419a1c75e700cc6a8ab2d73 (patch)
tree0ee8dc636b6ca77e306175432d51bc48b2aa4068
parent32fcc778ea3f8f1ca3cad2626a6784ec11e8598f (diff)
downloadruby-f0a534a7f758146ec419a1c75e700cc6a8ab2d73.tar.gz
ruby-f0a534a7f758146ec419a1c75e700cc6a8ab2d73.tar.xz
ruby-f0a534a7f758146ec419a1c75e700cc6a8ab2d73.zip
* file.c (Init_File): IO should include File::Const.
[ruby-dev:20964] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--file.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ff8fa5f0f..118796df9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 28 23:23:08 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * file.c (Init_File): IO should include File::Const.
+ [ruby-dev:20964]
+
Mon Jul 28 18:53:03 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/openssl/extconf.rb: check again after pkg-config for MinGW on
diff --git a/file.c b/file.c
index 49d931be4..1449303f0 100644
--- a/file.c
+++ b/file.c
@@ -2578,7 +2578,6 @@ rb_file_const(name, value)
VALUE value;
{
rb_define_const(rb_mFConst, name, value);
- rb_define_const(rb_cIO, name, value);
}
static int
@@ -2919,6 +2918,7 @@ Init_File()
rb_define_method(rb_cFile, "flock", rb_file_flock, 1);
rb_mFConst = rb_define_module_under(rb_cFile, "Constants");
+ rb_include_module(rb_cIO, rb_mFConst);
rb_file_const("LOCK_SH", INT2FIX(LOCK_SH));
rb_file_const("LOCK_EX", INT2FIX(LOCK_EX));
rb_file_const("LOCK_UN", INT2FIX(LOCK_UN));