[macruby-changes] [1983] MacRuby/branches/experimental/io.c
source_changes at macosforge.org
source_changes at macosforge.org
Sat Jul 4 01:51:13 PDT 2009
Revision: 1983
http://trac.macosforge.org/projects/ruby/changeset/1983
Author: lsansonetti at apple.com
Date: 2009-07-04 01:51:12 -0700 (Sat, 04 Jul 2009)
Log Message:
-----------
fixed a bug in IO#print
Modified Paths:
--------------
MacRuby/branches/experimental/io.c
Modified: MacRuby/branches/experimental/io.c
===================================================================
--- MacRuby/branches/experimental/io.c 2009-07-04 08:32:47 UTC (rev 1982)
+++ MacRuby/branches/experimental/io.c 2009-07-04 08:51:12 UTC (rev 1983)
@@ -2454,19 +2454,18 @@
rb_io_assert_writable(ExtractIOStruct(io));
VALUE line;
if (argc == 0) {
- // No arguments? Bloody Perlisms...
argc = 1;
line = rb_lastline_get();
argv = &line;
}
- while(argc--) {
- rb_io_write(rb_stdout, 0, *argv++);
+ while (argc--) {
+ rb_io_write(io, 0, *argv++);
if (!NIL_P(rb_output_fs)) {
- rb_io_write(rb_stdout, 0, rb_output_fs);
+ rb_io_write(io, 0, rb_output_fs);
}
}
if (!NIL_P(rb_output_rs)) {
- rb_io_write(rb_stdout, 0, rb_output_rs);
+ rb_io_write(io, 0, rb_output_rs);
}
return Qnil;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090704/bc001509/attachment.html>
More information about the macruby-changes
mailing list