summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-28 09:20:37 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-28 09:20:37 +0000
commit62b07ab1337e90b9d304c4a08e2f5b1e7d98b33d (patch)
tree4fbdea1054c9096cc35ac4b476af4d4b46b2fece /include/ruby
parent884264dc4d83660fb04bf64a141c62d0b704838c (diff)
merges r21709, r21710 from trunk into ruby_1_9_1.
* include/ruby/io.h (FMODE_EOF): EOF flag on TTY. * io.c (io_set_eof): sets EOF flag for TTY. * io.c (io_seek): clears EOF flag. * io.c (io_fillbuf): returns EOF if already met EOF. [ruby-dev:37798] * io.c (io_fillbuf, io_fread, io_getpartial): sets EOF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index 04af3d07e3..64773549f5 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -92,6 +92,7 @@ typedef struct rb_io_t {
#define FMODE_WSPLIT_INITIALIZED 0x00000400
#define FMODE_TRUNC 0x00000800
#define FMODE_TEXTMODE 0x00001000
+#define FMODE_EOF 0x00002000
/* #define FMODE_PREP 0x00010000 */
#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)