Revision
2693
Author
lsansonetti@apple.com
Date
2009-09-30 16:43:09 -0700 (Wed, 30 Sep 2009)

Log Message

http://xkcd.com/292/

Modified Paths

Diff

Modified: MacRuby/trunk/bs.c (2692 => 2693)


--- 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;