[macruby-changes] [2624] MacRuby/trunk/parse.y

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 23 15:50:20 PDT 2009


Revision: 2624
          http://trac.macosforge.org/projects/ruby/changeset/2624
Author:   lsansonetti at apple.com
Date:     2009-09-23 15:50:16 -0700 (Wed, 23 Sep 2009)
Log Message:
-----------
added autorelease and dealloc to the list of handled ignored selectors

Modified Paths:
--------------
    MacRuby/trunk/parse.y

Modified: MacRuby/trunk/parse.y
===================================================================
--- MacRuby/trunk/parse.y	2009-09-23 19:02:01 UTC (rev 2623)
+++ MacRuby/trunk/parse.y	2009-09-23 22:50:16 UTC (rev 2624)
@@ -9613,10 +9613,17 @@
 	    name_hash = (SEL)0x2000;
 	}
 	else if (strcmp(name, "retainCount") == 0) {
+	    name_hash = (SEL)0x3000;
+	}
+	else if (strcmp(name, "autorelease") == 0) {
 	    name_hash = (SEL)0x4000;
 	}
+	else if (strcmp(name, "dealloc") == 0) {
+	    name_hash = (SEL)0x5000;
+	}
 	else {
-	    assert(1==0);
+	    printf("unrecognized ignored sel %s\n", name);
+	    abort();
 	}
     }
     id = (ID)CFDictionaryGetValue((CFDictionaryRef)global_symbols.sym_id, 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090923/53b452b0/attachment.html>


More information about the macruby-changes mailing list