summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-24 01:44:12 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-24 01:44:12 (GMT)
commitc15a74f3d0b31133c01a64334c6a660ad70fb442 (patch)
treea5ff4eadb4b9320a7dde834ec8857e2324522c9a /win32
parent7bf5ba1b497277df6fc245398166089410eda0ee (diff)
* win32/win32.c (rb_w32_{getc,putc}): removed. they are needed for old
ruby (before 1.8), but not now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 570ac15..ba5caae 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5530,46 +5530,7 @@ rb_w32_times(struct tms *tmbuf)
#define yield_once() Sleep(0)
#define yield_until(condition) do yield_once(); while (!(condition))
-/* License: Ruby's */
-static void
-catch_interrupt(void)
-{
- yield_once();
- RUBY_CRITICAL(rb_w32_wait_events(NULL, 0, 0));
-}
-#undef fgetc
-/* License: Ruby's */
-int
-rb_w32_getc(FILE* stream)
-{
- int c;
- if (enough_to_get(FILE_COUNT(stream))) {
- c = (unsigned char)*FILE_READPTR(stream)++;
- }
- else {
- c = _filbuf(stream);
- catch_interrupt();
- }
- return c;
-}
-
-#undef fputc
-/* License: Ruby's */
-int
-rb_w32_putc(int c, FILE* stream)
-{
- if (enough_to_put(FILE_COUNT(stream))) {
- c = (unsigned char)(*FILE_READPTR(stream)++ = (char)c);
- }
- else {
- c = _flsbuf(c, stream);
- catch_interrupt();
- }
- return c;
-}
-
-/* License: Ruby's */
struct asynchronous_arg_t {
/* output field */
void* stackaddr;