[macruby-changes] [2693] MacRuby/trunk/bs.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 30 16:43:13 PDT 2009


Revision: 2693
          http://trac.macosforge.org/projects/ruby/changeset/2693
Author:   lsansonetti at apple.com
Date:     2009-09-30 16:43:09 -0700 (Wed, 30 Sep 2009)
Log Message:
-----------
http://xkcd.com/292/

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

Modified: MacRuby/trunk/bs.c
===================================================================
--- MacRuby/trunk/bs.c	2009-09-30 22:08:05 UTC (rev 2692)
+++ MacRuby/trunk/bs.c	2009-09-30 23:43:09 UTC (rev 2693)
@@ -1027,6 +1027,10 @@
             method->args_count = 0;
             method->args = NULL;
             method->retval = NULL;
+
+            if (xmlTextReaderIsEmptyElement(reader)) {
+              goto index_method;
+            }
           }
           else {
             BAIL("method defined outside a class or informal protocol");
@@ -1108,6 +1112,7 @@
             memcpy(method->args, args, len);
           }
 
+index_method:
           methods = method->class_method 
             ? klass->class_methods : klass->instance_methods;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090930/cabeb7f8/attachment.html>


More information about the macruby-changes mailing list