summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-19 09:06:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-19 09:06:38 +0000
commit6d1b1ca8826eaf3e3ecd7579c887f4e6463a97de (patch)
treee83c3e7b0ac9b5c2890580b5d523828015404c85
parent0877d7afc549df9d6b648692e7267b85cd09cd89 (diff)
downloadruby-6d1b1ca8826eaf3e3ecd7579c887f4e6463a97de.tar.gz
ruby-6d1b1ca8826eaf3e3ecd7579c887f4e6463a97de.tar.xz
ruby-6d1b1ca8826eaf3e3ecd7579c887f4e6463a97de.zip
* include/ruby/io.h (FMODE_*): sorted and describe the values in
hexadecimal. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--include/ruby/io.h23
2 files changed, 17 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 4c0e0c822..6a2c7e7cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 19 18:05:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (FMODE_*): sorted and describe the values in
+ hexadecimal.
+
Tue Aug 19 17:32:30 2008 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_x509name.c (ossl_x509name_initialize): store the
diff --git a/include/ruby/io.h b/include/ruby/io.h
index 9d5407e1f..5d8c7e714 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -72,17 +72,18 @@ typedef struct rb_io_t {
#define HAVE_RB_IO_T 1
-#define FMODE_READABLE 1
-#define FMODE_WRITABLE 2
-#define FMODE_READWRITE 3
-#define FMODE_APPEND 64
-#define FMODE_CREATE 128
-#define FMODE_BINMODE 4
-#define FMODE_SYNC 8
-#define FMODE_TTY 16
-#define FMODE_DUPLEX 32
-#define FMODE_WSPLIT 0x200
-#define FMODE_WSPLIT_INITIALIZED 0x400
+#define FMODE_READABLE 0x0001
+#define FMODE_WRITABLE 0x0002
+#define FMODE_READWRITE 0x0003
+
+#define FMODE_BINMODE 0x0004
+#define FMODE_SYNC 0x0008
+#define FMODE_TTY 0x0010
+#define FMODE_DUPLEX 0x0020
+#define FMODE_APPEND 0x0040
+#define FMODE_CREATE 0x0080
+#define FMODE_WSPLIT 0x0200
+#define FMODE_WSPLIT_INITIALIZED 0x0400
#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)