1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/io.h (FMODE_TRUNC): value changed because 0x100 is used

as FMODE_NOREVLOOKUP in socket.c


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-19 21:10:28 +00:00
parent 297f3249d9
commit f78380f0f1
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Aug 20 06:09:31 2008 Tanaka Akira <akr@fsij.org>
* include/ruby/io.h (FMODE_TRUNC): value changed because 0x100 is used
as FMODE_NOREVLOOKUP in socket.c
Wed Aug 20 05:19:40 2008 Tanaka Akira <akr@fsij.org>
* io.c (parse_mode_enc): extracted from mode_enc.

View file

@ -81,9 +81,11 @@ typedef struct rb_io_t {
#define FMODE_DUPLEX 0x0020
#define FMODE_APPEND 0x0040
#define FMODE_CREATE 0x0080
#define FMODE_TRUNC 0x0100
/* #define FMODE_NOREVLOOKUP 0x0100 */
#define FMODE_WSPLIT 0x0200
#define FMODE_WSPLIT_INITIALIZED 0x0400
#define FMODE_TRUNC 0x0800
/* #define FMODE_PREP 0x10000 */
#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)