[macruby-changes] [2118] MacRuby/branches/experimental/complex.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 29 22:09:27 PDT 2009


Revision: 2118
          http://trac.macosforge.org/projects/ruby/changeset/2118
Author:   lsansonetti at apple.com
Date:     2009-07-29 22:09:26 -0700 (Wed, 29 Jul 2009)
Log Message:
-----------
properly declare math_* apis

Modified Paths:
--------------
    MacRuby/branches/experimental/complex.c

Modified: MacRuby/branches/experimental/complex.c
===================================================================
--- MacRuby/branches/experimental/complex.c	2009-07-30 05:04:52 UTC (rev 2117)
+++ MacRuby/branches/experimental/complex.c	2009-07-30 05:09:26 UTC (rev 2118)
@@ -473,19 +473,19 @@
 }
 
 #define imp1(n) \
-extern VALUE math_##n(VALUE obj, VALUE x);\
+extern VALUE math_##n(VALUE obj, SEL sel, VALUE x);\
 inline static VALUE \
 m_##n##_bang(VALUE x)\
 {\
-    return math_##n(Qnil, x);\
+    return math_##n(Qnil, 0, x);\
 }
 
 #define imp2(n) \
-extern VALUE math_##n(VALUE obj, VALUE x, VALUE y);\
+extern VALUE math_##n(VALUE obj, SEL sel, VALUE x, VALUE y);\
 inline static VALUE \
 m_##n##_bang(VALUE x, VALUE y)\
 {\
-    return math_##n(Qnil, x, y);\
+    return math_##n(Qnil, 0, x, y);\
 }
 
 imp2(atan2)
@@ -496,12 +496,12 @@
 
 #define m_hypot(x,y) m_hypot_bang(x,y)
 
-extern VALUE math_log(int argc, VALUE *argv);
+extern VALUE math_log(VALUE rcv, SEL sel, int argc, VALUE *argv);
 
 static VALUE
 m_log_bang(VALUE x)
 {
-    return math_log(1, &x);
+    return math_log(0, 0, 1, &x);
 }
 
 imp1(sin)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090729/c5f528a3/attachment.html>


More information about the macruby-changes mailing list