[macruby-changes] [3069] MacRuby/trunk/bridgesupport.cpp

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 30 22:23:11 PST 2009


Revision: 3069
          http://trac.macosforge.org/projects/ruby/changeset/3069
Author:   lsansonetti at apple.com
Date:     2009-11-30 22:23:07 -0800 (Mon, 30 Nov 2009)
Log Message:
-----------
property handle missing 64-bit bridgesupport annotations in informal protocols for pointer types

Modified Paths:
--------------
    MacRuby/trunk/bridgesupport.cpp

Modified: MacRuby/trunk/bridgesupport.cpp
===================================================================
--- MacRuby/trunk/bridgesupport.cpp	2009-12-01 03:25:59 UTC (rev 3068)
+++ MacRuby/trunk/bridgesupport.cpp	2009-12-01 06:23:07 UTC (rev 3069)
@@ -1003,7 +1003,12 @@
 	    const char *p = bs_inf_prot_method->type;
 	    do {
 		const char *p2 = (char *)SkipFirstType(p);
-		const size_t len = p2 - p;
+		size_t len = p2 - p;
+		if (*p == _C_PTR && len > 1) {
+		    strlcat(type, "^", typelen);
+		    p++;
+		    len--;
+		}
 		if (len == 1 && *p == _C_FLT) {
 		    // float -> double
 		    strlcat(type, "d", typelen);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091130/8e186664/attachment.html>


More information about the macruby-changes mailing list