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;