[macruby-changes] [2427] MacRuby/trunk/gcd.c

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 29 01:53:14 PDT 2009


Revision: 2427
          http://trac.macosforge.org/projects/ruby/changeset/2427
Author:   lsansonetti at apple.com
Date:     2009-08-29 01:53:10 -0700 (Sat, 29 Aug 2009)
Log Message:
-----------
use dispatch_set_context() instead of a legacy call

Modified Paths:
--------------
    MacRuby/trunk/gcd.c

Modified: MacRuby/trunk/gcd.c
===================================================================
--- MacRuby/trunk/gcd.c	2009-08-29 06:58:27 UTC (rev 2426)
+++ MacRuby/trunk/gcd.c	2009-08-29 08:53:10 UTC (rev 2427)
@@ -466,7 +466,7 @@
         rb_raise(rb_eArgError, "on_event() requires a block argument");
     }
     GC_WB(&src->event_handler, the_block);
-    dispatch_source_set_context(src->source, (void *)self); // retain this?
+    dispatch_set_context(src->source, (void *)self); // retain this?
     dispatch_source_set_event_handler_f(src->source, rb_source_event_handler);
     return Qnil;
 }
@@ -488,7 +488,7 @@
         rb_raise(rb_eArgError, "on_event() requires a block argument");
     }
     GC_WB(&src->cancel_handler, the_block);
-    dispatch_source_set_context(src->source, (void*)self); // retain this?
+    dispatch_set_context(src->source, (void*)self); // retain this?
     dispatch_source_set_cancel_handler_f(src->source, rb_source_cancel_handler);
     return Qnil;
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090829/94c5712a/attachment.html>


More information about the macruby-changes mailing list