[macruby-changes] [4490] MacRuby/trunk/class.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 2 18:10:21 PDT 2010
Revision: 4490
http://trac.macosforge.org/projects/ruby/changeset/4490
Author: lsansonetti at apple.com
Date: 2010-09-02 18:10:20 -0700 (Thu, 02 Sep 2010)
Log Message:
-----------
cleanup
Modified Paths:
--------------
MacRuby/trunk/class.c
Modified: MacRuby/trunk/class.c
===================================================================
--- MacRuby/trunk/class.c 2010-09-02 02:16:14 UTC (rev 4489)
+++ MacRuby/trunk/class.c 2010-09-03 01:10:20 UTC (rev 4490)
@@ -597,12 +597,13 @@
if (add_methods) {
// Copy methods. If original class has the basic -initialize and if the
- // module has a customized -initialize, we must copy the customized version
- // to the original class too.
+ // module has a customized -initialize, we must copy the customized
+ // version to the original class too.
rb_vm_copy_methods((Class)module, (Class)klass);
if (orig_klass != 0 && orig_klass != klass) {
- Method m = class_getInstanceMethod((Class)orig_klass, selInitialize);
+ Method m = class_getInstanceMethod((Class)orig_klass,
+ selInitialize);
Method m2 = class_getInstanceMethod((Class)klass, selInitialize);
if (m != NULL && m2 != NULL
&& method_getImplementation(m) == (IMP)rb_objc_init
@@ -619,7 +620,6 @@
rb_include_module2(klass, 0, module, true, true);
}
-
/*
* call-seq:
* mod.included_modules -> array
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100902/23daa07a/attachment.html>
More information about the macruby-changes
mailing list