From b9228a014ba4818cdf584e3dda63ed1aed3ad1c7 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 25 Sep 2000 09:15:08 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'file.c') 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)); -- cgit v1.2.3