ruby-changes:3017
From: ko1@a...
Date: 23 Dec 2007 11:01:45 +0900
Subject: [ruby-changes:3017] nobu - Ruby:r14509 (trunk): * io.c (rb_io_binmode_m): removed C99ism.
nobu 2007-12-23 11:01:34 +0900 (Sun, 23 Dec 2007)
New Revision: 14509
Modified files:
trunk/ChangeLog
trunk/io.c
Log:
* io.c (rb_io_binmode_m): removed C99ism.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14509&r2=14508
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=14509&r2=14508
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14508)
+++ ChangeLog (revision 14509)
@@ -1,3 +1,7 @@
+Sun Dec 23 11:01:35 2007 Nobuyoshi Nakada <nobu@r...>
+
+ * io.c (rb_io_binmode_m): removed C99ism.
+
Sun Dec 23 10:23:23 2007 Martin Duerst <duerst@i...>
* transcode_data_one_byte.c: Better (and more honest) optimization.
Index: io.c
===================================================================
--- io.c (revision 14508)
+++ io.c (revision 14509)
@@ -2908,11 +2908,13 @@
static VALUE
rb_io_binmode_m(VALUE io)
{
+#if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__)
+ VALUE write_io;
+#endif
+
rb_io_binmode(io);
#if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__)
- VALUE write_io;
-
write_io = GetWriteIO(io);
if (write_io != io)
rb_io_binmode(write_io);
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml