[macruby-changes] [1374] MacRuby/branches/experimental
source_changes at macosforge.org
source_changes at macosforge.org
Sun Apr 5 13:20:52 PDT 2009
Revision: 1374
http://trac.macosforge.org/projects/ruby/changeset/1374
Author: pthomson at apple.com
Date: 2009-04-05 13:20:52 -0700 (Sun, 05 Apr 2009)
Log Message:
-----------
Reenabled the putc spec and disabled a debug message.
Modified Paths:
--------------
MacRuby/branches/experimental/io.c
MacRuby/branches/experimental/rakelib/spec.rake
Modified: MacRuby/branches/experimental/io.c
===================================================================
--- MacRuby/branches/experimental/io.c 2009-04-05 20:08:02 UTC (rev 1373)
+++ MacRuby/branches/experimental/io.c 2009-04-05 20:20:52 UTC (rev 1374)
@@ -851,9 +851,10 @@
CFErrorRef er = CFReadStreamCopyError(readStream);
CFStringRef failure_reason = CFErrorCopyFailureReason(er);
if(failure_reason != NULL) {
- CFStringRef pretty = CFStringCreateWithFormat(NULL, NULL,
+ CFStringRef pretty = CFStringCreateWithFormat(NULL, NULL,
CFSTR("Internal error while reading stream: %@"), failure_reason);
- rb_raise(rb_eRuntimeError, (char*)CFStringGetCharactersPtr(pretty));
+ if(pretty != NULL)
+ rb_raise(rb_eRuntimeError, (char*)CFStringGetCharactersPtr(pretty));
}
rb_raise(rb_eRuntimeError, "internal error while reading stream:");
}
@@ -1996,7 +1997,6 @@
static VALUE
rb_io_s_open(VALUE klass, SEL sel, int argc, VALUE *argv)
{
- printf("Beginning the opening lol.");
VALUE io = rb_io_s_new(klass, sel, argc, argv);
if (rb_block_given_p()) {
VALUE ret = rb_vm_yield(1, &io);
Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake 2009-04-05 20:08:02 UTC (rev 1373)
+++ MacRuby/branches/experimental/rakelib/spec.rake 2009-04-05 20:20:52 UTC (rev 1374)
@@ -40,6 +40,7 @@
io
inspect
initialize_copy
+ putc
readchar
sync
syswrite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090405/af5de8e6/attachment-0001.html>
More information about the macruby-changes
mailing list