summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-25 09:15:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-25 09:15:08 +0000
commitb9228a014ba4818cdf584e3dda63ed1aed3ad1c7 (patch)
tree02b5b0ea6c42aa4186fe5095141f8782076fea8e /file.c
parent40412b77305befcaffd0f3fcf85d6cd8f2d75f3d (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/file.c b/file.c
index 85d7d5056e..14c24c5ace 100644
--- a/file.c
+++ b/file.c
@@ -1980,15 +1980,14 @@ rb_stat_sticky(obj)
return Qfalse;
}
-static VALUE rb_mConst;
+static VALUE rb_mFConst;
void
rb_file_const(name, value)
const char *name;
VALUE value;
{
- rb_define_const(rb_cFile, name, value);
- rb_define_const(rb_mConst, name, value);
+ rb_define_const(rb_mFConst, name, value);
}
static int
@@ -2240,7 +2239,8 @@ Init_File()
rb_define_method(rb_cFile, "flock", rb_file_flock, 1);
- rb_mConst = rb_define_module_under(rb_cFile, "Constants");
+ rb_mFConst = rb_define_module_under(rb_cFile, "Constants");
+ rb_include_module(rb_cFile, 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));