[macruby-changes] [488] MacRuby/trunk/objc.m

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 26 18:01:33 PDT 2008


Revision: 488
          http://trac.macosforge.org/projects/ruby/changeset/488
Author:   lsansonetti at apple.com
Date:     2008-08-26 18:01:33 -0700 (Tue, 26 Aug 2008)
Log Message:
-----------
pass ruby objects as ^v

Modified Paths:
--------------
    MacRuby/trunk/objc.m

Modified: MacRuby/trunk/objc.m
===================================================================
--- MacRuby/trunk/objc.m	2008-08-26 20:18:29 UTC (rev 487)
+++ MacRuby/trunk/objc.m	2008-08-27 01:01:33 UTC (rev 488)
@@ -743,7 +743,15 @@
 		    }
 		    break;
 		default:
-		    if (st_lookup(bs_boxeds, (st_data_t)octype + 1, 
+		    if (strcmp(octype, "^v") == 0) {
+			if (SPECIAL_CONST_P(rval)) {
+			    ok = false;
+			}
+			else {
+			    *(void **)ocval = (void *)rval;
+			}
+		    }
+		    else if (st_lookup(bs_boxeds, (st_data_t)octype + 1, 
 				(st_data_t *)&bs_boxed)) {
 			void *data;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080826/f2dc6fd6/attachment.html 


More information about the macruby-changes mailing list