summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1994-11-01 08:27:44 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:30 +0900
commitc31025779da3020b9d1e9ad4c920e76b6b97d5fd (patch)
tree0823b3c8ef654b96e495d87933f356192de7d773 /io.c
parent29f237a8b1df650089b54447f070726c75706b6f (diff)
version 0.55v0_55
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.55.tar.gz
Diffstat (limited to 'io.c')
-rw-r--r--io.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/io.c b/io.c
index dd01345..75bc384 100644
--- a/io.c
+++ b/io.c
@@ -3,7 +3,7 @@
io.c -
$Author: matz $
- $Date: 1994/10/14 10:00:55 $
+ $Date: 1994/11/01 08:28:01 $
created at: Fri Oct 15 18:08:59 JST 1993
Copyright (C) 1994 Yukihiro Matsumoto
@@ -883,13 +883,21 @@ rb_xstring(str)
struct timeval *time_timeval();
-#ifdef __linux__
-# define READ_PENDING(fp) ((fp)->_gptr < (fp)->_egptr > 0)
-#else
+#ifdef STDSTDIO
+# define READ_PENDING(fp) ((fp)->_cnt != 0)
+#else
# ifdef __SLBF
-# define READ_PENDING(fp) ((fp)->_r > 0)
+# define READ_PENDING(fp) ((fp)->_r > 0)
# else
-# define READ_PENDING(fp) ((fp)->_cnt != 0)
+# ifdef __linux__
+# ifdef _other_gbase
+# define READ_PENDING(fp) ((fp)->_IO_read_ptr < (fp)->_IO_read_end)
+# else
+# define READ_PENDING(fp) ((fp)->_gptr < (fp)->_egptr)
+# endif
+# else
+--------------> You Lose <--------------
+# endif
# endif
#endif