ruby-changes:47151
From: nobu <ko1@a...>
Date: Wed, 5 Jul 2017 15:32:58 +0900 (JST)
Subject: [ruby-changes:47151] nobu:r59266 (trunk): debug.c: add FMODE constants
nobu 2017-07-05 15:32:54 +0900 (Wed, 05 Jul 2017) New Revision: 59266 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59266 Log: debug.c: add FMODE constants Modified files: trunk/debug.c Index: debug.c =================================================================== --- debug.c (revision 59265) +++ debug.c (revision 59266) @@ -34,6 +34,24 @@ const union { https://github.com/ruby/ruby/blob/trunk/debug.c#L34 enum ruby_rstring_flags rstring_flags; enum ruby_rarray_flags rarray_flags; enum { + RUBY_FMODE_READABLE = FMODE_READABLE, + RUBY_FMODE_WRITABLE = FMODE_WRITABLE, + RUBY_FMODE_READWRITE = FMODE_READWRITE, + RUBY_FMODE_BINMODE = FMODE_BINMODE, + RUBY_FMODE_SYNC = FMODE_SYNC, + RUBY_FMODE_TTY = FMODE_TTY, + RUBY_FMODE_DUPLEX = FMODE_DUPLEX, + RUBY_FMODE_APPEND = FMODE_APPEND, + RUBY_FMODE_CREATE = FMODE_CREATE, + RUBY_FMODE_NOREVLOOKUP = 0x00000100, + RUBY_FMODE_TRUNC = FMODE_TRUNC, + RUBY_FMODE_TEXTMODE = FMODE_TEXTMODE, + RUBY_FMODE_PREP = 0x00010000, + RUBY_FMODE_SETENC_BY_BOM = FMODE_SETENC_BY_BOM, + RUBY_FMODE_UNIX = 0x00200000, + RUBY_FMODE_INET = 0x00400000, + RUBY_FMODE_INET6 = 0x00800000, + RUBY_NODE_TYPESHIFT = NODE_TYPESHIFT, RUBY_NODE_TYPEMASK = NODE_TYPEMASK, RUBY_NODE_LSHIFT = NODE_LSHIFT, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/