aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-20 16:00:04 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-20 16:00:04 +0000
commitb317bf06a4d8200b43d46685e251e993241e0765 (patch)
tree7de227d1561495e7909aa47b4a317649c1f74c77
parent9d71f70da9f30528675f07228687106a69f05b3b (diff)
downloadruby-b317bf06a4d8200b43d46685e251e993241e0765.tar.gz
* file.c (Init_File): null device definition uses rb_define_const
instead of rb_file_const. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--file.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b1569cbf0..dc2d7ac7f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Nov 21 00:57:43 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * file.c (Init_File): null device definition uses rb_define_const
+ instead of rb_file_const.
+
Wed Nov 21 00:28:18 2012 NARUSE, Yui <naruse@ruby-lang.org>
* test/ruby/test_m17n_comb.rb (test_str_crypt): Use RbConfig to get
diff --git a/file.c b/file.c
index d4e7e36cc8..88a7065cf7 100644
--- a/file.c
+++ b/file.c
@@ -5601,11 +5601,8 @@ Init_File(void)
/* non-blocking lock. used with LOCK_SH or LOCK_EX. see File#flock */
rb_define_const(rb_mFConst, "LOCK_NB", INT2FIX(LOCK_NB));
- /* Document-const: NULL
- *
- * Name of the null device
- */
- rb_file_const("NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
+ /* Name of the null device */
+ rb_define_const(rb_mFConst, "NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
rb_define_method(rb_cFile, "path", rb_file_path, 0);
rb_define_method(rb_cFile, "to_path", rb_file_path, 0);