[macruby-changes] [3261] MacRuby/trunk/gcd.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 13 15:02:50 PST 2010
Revision: 3261
http://trac.macosforge.org/projects/ruby/changeset/3261
Author: ernest.prabhakar at gmail.com
Date: 2010-01-13 15:02:49 -0800 (Wed, 13 Jan 2010)
Log Message:
-----------
Removed unused type field from Dispatch::Source
Modified Paths:
--------------
MacRuby/trunk/gcd.c
Modified: MacRuby/trunk/gcd.c
===================================================================
--- MacRuby/trunk/gcd.c 2010-01-13 01:40:14 UTC (rev 3260)
+++ MacRuby/trunk/gcd.c 2010-01-13 23:02:49 UTC (rev 3261)
@@ -80,7 +80,6 @@
struct RBasic basic;
int suspension_count;
dispatch_source_t source;
- dispatch_source_type_t type; // remove?
rb_vm_block_t *event_handler;
} rb_source_t;
@@ -786,13 +785,13 @@
VALUE type, VALUE handle, VALUE mask, VALUE queue)
{
Check_Queue(queue);
- rb_source_t *src = RSource(self);
- src->type = rb_num2source_type(type);
- assert(src->type != NULL);
+ rb_source_t *src = RSource(self);
+ dispatch_source_type_t type = rb_num2source_type(type);
+ assert(type != NULL);
uintptr_t c_handle = NUM2UINT(handle);
unsigned long c_mask = NUM2LONG(mask);
dispatch_queue_t c_queue = RQueue(queue)->queue;
- src->source = dispatch_source_create(src->type, c_handle, c_mask, c_queue);
+ src->source = dispatch_source_create(type, c_handle, c_mask, c_queue);
assert(src->source != NULL);
if (rb_block_given_p()) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100113/048759a9/attachment-0001.html>
More information about the macruby-changes
mailing list