[#36672] [Bug #616] instance_eval and Module#to_s — Shyouhei Urabe <redmine@...>

Bug #616: instance_eval and Module#to_s

12 messages 2008/10/06

[#36750] [Bug #650] Marshal.load raises RegexpError — Shyouhei Urabe <redmine@...>

Bug #650: Marshal.load raises RegexpError

30 messages 2008/10/15
[#36769] Re: [Bug #650] Marshal.load raises RegexpError — Yukihiro Matsumoto <matz@...> 2008/10/17

まつもと ゆきひろです

[#36771] Re: [Bug #650] Marshal.load raises RegexpError — Urabe Shyouhei <shyouhei@...> 2008/10/17

卜部です。

[#36772] Re: [Bug #650] Marshal.load raises RegexpError — Yukihiro Matsumoto <matz@...> 2008/10/17

まつもと ゆきひろです

[#36773] Re: [Bug #650] Marshal.load raises RegexpError — Urabe Shyouhei <shyouhei@...> 2008/10/17

卜部です。

[#36784] Re: [Bug #650] Marshal.load raises RegexpError — Yukihiro Matsumoto <matz@...> 2008/10/18

まつもと ゆきひろです

[#36785] Re: [Bug #650] Marshal.load raises RegexpError — Urabe Shyouhei <shyouhei@...> 2008/10/18

卜部です。

[#36793] Re: [Bug #650] Marshal.load raises RegexpError — Yukihiro Matsumoto <matz@...> 2008/10/19

まつもと ゆきひろです

[#36794] Re: [Bug #650] Marshal.load raises RegexpError — Urabe Shyouhei <shyouhei@...> 2008/10/19

Yukihiro Matsumoto さんは書きました:

[#36823] Re: [Bug #650] Marshal.load raises RegexpError — Yukihiro Matsumoto <matz@...> 2008/10/21

まつもと ゆきひろです

[#36830] Re: [Bug #650] Marshal.load raises RegexpError — Urabe Shyouhei <shyouhei@...> 2008/10/21

もとの正規表現にバグがあるのは認めますが、それに巻き込まれてでかいPStore

[#36833] Re: [Bug #650] Marshal.load raises RegexpError — Yukihiro Matsumoto <matz@...> 2008/10/21

まつもと ゆきひろです

[#36764] Re: [ruby-cvs:27036] Ruby:r19818 (trunk): * transcode.c (str_transcode0): String#encode without argument now — Martin Duerst <duerst@...>

まつもとさん、こんばんは。

11 messages 2008/10/17
[#36767] Re: [ruby-cvs:27036] Ruby:r19818 (trunk): * transcode.c (str_transcode0): String#encode without argument now — Yukihiro Matsumoto <matz@...> 2008/10/17

まつもと ゆきひろです

[#36799] Re: [ruby-cvs:27036] Ruby:r19818 (trunk): * transcode.c (str_transcode0): String#encode without argument now — Martin Duerst <duerst@...> 2008/10/20

まつもとさん、こんにちは。

[#36774] ConverterNotFoundError while making Ruby in Windows(trunk) — Masaki Suketa <masaki.suketa@...>

助田です。

13 messages 2008/10/17
[#36797] Re: ConverterNotFoundError while making Ruby in Windows(trunk) — "U.Nakamura" <usa@...> 2008/10/20

こんにちは、なかむら(う)です。

[#36800] Re: ConverterNotFoundError while making Ruby in Windows(trunk) — "U.Nakamura" <usa@...> 2008/10/20

こんにちは、なかむら(う)です。

[#36789] [Bug #660] 数字を3桁ずつコンマで区切るsprintf書式指定 — "rubikitch ." <redmine@...>

Bug #660: 数字を3桁ずつコンマで区切るsprintf書式指定

13 messages 2008/10/19

[#37007] [Bug:1.9] 1+1+1+...+1 dumps core — "Yusuke ENDOH" <mame@...>

遠藤です。

13 messages 2008/10/31

[ruby-dev:36914] prefix math_* funcs

From: Tadashi Saito <shiba@...2.accsnet.ne.jp>
Date: 2008-10-24 17:44:25 UTC
List: ruby-dev #36914
斎藤と申します。

complex.cで使うために、いくつか数学関数からstaticがとれたようですが、
外部に出すならば rb_ 接頭辞を付けてほしいです。


Index: complex.c
===================================================================
--- complex.c	(revision 19925)
+++ complex.c	(working copy)
@@ -414,31 +414,31 @@
     return rb_funcall2(rb_cComplex, id_convert, argc, argv);
 }
 
-extern VALUE math_atan2(VALUE obj, VALUE x, VALUE y);
-extern VALUE math_cos(VALUE obj, VALUE x);
-extern VALUE math_cosh(VALUE obj, VALUE x);
-extern VALUE math_exp(VALUE obj, VALUE x);
-extern VALUE math_hypot(VALUE obj, VALUE x, VALUE y);
-extern VALUE math_log(int argc, VALUE *argv);
-extern VALUE math_sin(VALUE obj, VALUE x);
-extern VALUE math_sinh(VALUE obj, VALUE x);
-extern VALUE math_sqrt(VALUE obj, VALUE x);
+extern VALUE rb_math_atan2(VALUE obj, VALUE x, VALUE y);
+extern VALUE rb_math_cos(VALUE obj, VALUE x);
+extern VALUE rb_math_cosh(VALUE obj, VALUE x);
+extern VALUE rb_math_exp(VALUE obj, VALUE x);
+extern VALUE rb_math_hypot(VALUE obj, VALUE x, VALUE y);
+extern VALUE rb_math_log(int argc, VALUE *argv);
+extern VALUE rb_math_sin(VALUE obj, VALUE x);
+extern VALUE rb_math_sinh(VALUE obj, VALUE x);
+extern VALUE rb_math_sqrt(VALUE obj, VALUE x);
 
-#define m_atan2_bang(x,y) math_atan2(Qnil,x,y)
-#define m_cos_bang(x) math_cos(Qnil,x)
-#define m_cosh_bang(x) math_cosh(Qnil,x)
-#define m_exp_bang(x) math_exp(Qnil,x)
-#define m_hypot(x,y) math_hypot(Qnil,x,y)
+#define m_atan2_bang(x,y) rb_math_atan2(Qnil,x,y)
+#define m_cos_bang(x) rb_math_cos(Qnil,x)
+#define m_cosh_bang(x) rb_math_cosh(Qnil,x)
+#define m_exp_bang(x) rb_math_exp(Qnil,x)
+#define m_hypot(x,y) rb_math_hypot(Qnil,x,y)
 
 static VALUE
 m_log_bang(VALUE x)
 {
-    return math_log(1, &x);
+    return rb_math_log(1, &x);
 }
 
-#define m_sin_bang(x) math_sin(Qnil,x)
-#define m_sinh_bang(x) math_sinh(Qnil,x)
-#define m_sqrt_bang(x) math_sqrt(Qnil,x)
+#define m_sin_bang(x) rb_math_sin(Qnil,x)
+#define m_sinh_bang(x) rb_math_sinh(Qnil,x)
+#define m_sqrt_bang(x) rb_math_sqrt(Qnil,x)
 
 static VALUE
 m_cos(VALUE x)
Index: math.c
===================================================================
--- math.c	(revision 19925)
+++ math.c	(working copy)
@@ -82,7 +82,7 @@
  */
 
 VALUE
-math_atan2(VALUE obj, VALUE y, VALUE x)
+rb_math_atan2(VALUE obj, VALUE y, VALUE x)
 {
     Need_Float2(y, x);
     return DBL2NUM(atan2(RFLOAT_VALUE(y), RFLOAT_VALUE(x)));
@@ -98,7 +98,7 @@
  */
 
 VALUE
-math_cos(VALUE obj, VALUE x)
+rb_math_cos(VALUE obj, VALUE x)
 {
     Need_Float(x);
     return DBL2NUM(cos(RFLOAT_VALUE(x)));
@@ -113,7 +113,7 @@
  */
 
 VALUE
-math_sin(VALUE obj, VALUE x)
+rb_math_sin(VALUE obj, VALUE x)
 {
     Need_Float(x);
 
@@ -182,7 +182,7 @@
  */
 
 static VALUE
-math_atan(VALUE obj, VALUE x)
+rb_math_atan(VALUE obj, VALUE x)
 {
     Need_Float(x);
     return DBL2NUM(atan(RFLOAT_VALUE(x)));
@@ -204,7 +204,7 @@
  */
 
 VALUE
-math_cosh(VALUE obj, VALUE x)
+rb_math_cosh(VALUE obj, VALUE x)
 {
     Need_Float(x);
     
@@ -228,7 +228,7 @@
  */
 
 VALUE
-math_sinh(VALUE obj, VALUE x)
+rb_math_sinh(VALUE obj, VALUE x)
 {
     Need_Float(x);
     return DBL2NUM(sinh(RFLOAT_VALUE(x)));
@@ -318,7 +318,7 @@
  */
 
 VALUE
-math_exp(VALUE obj, VALUE x)
+rb_math_exp(VALUE obj, VALUE x)
 {
     Need_Float(x);
     return DBL2NUM(exp(RFLOAT_VALUE(x)));
@@ -344,7 +344,7 @@
  */
 
 VALUE
-math_log(int argc, VALUE *argv)
+rb_math_log(int argc, VALUE *argv)
 {
     VALUE x, base;
     double d;
@@ -439,7 +439,7 @@
  */
 
 VALUE
-math_sqrt(VALUE obj, VALUE x)
+rb_math_sqrt(VALUE obj, VALUE x)
 {
     double d;
 
@@ -541,7 +541,7 @@
  */
 
 VALUE
-math_hypot(VALUE obj, VALUE x, VALUE y)
+rb_math_hypot(VALUE obj, VALUE x, VALUE y)
 {
     Need_Float2(x, y);
     return DBL2NUM(hypot(RFLOAT_VALUE(x), RFLOAT_VALUE(y)));
@@ -678,34 +678,34 @@
     rb_define_const(rb_mMath, "E", DBL2NUM(exp(1.0)));
 #endif
 
-    rb_define_module_function(rb_mMath, "atan2", math_atan2, 2);
-    rb_define_module_function(rb_mMath, "cos", math_cos, 1);
-    rb_define_module_function(rb_mMath, "sin", math_sin, 1);
+    rb_define_module_function(rb_mMath, "atan2", rb_math_atan2, 2);
+    rb_define_module_function(rb_mMath, "cos", rb_math_cos, 1);
+    rb_define_module_function(rb_mMath, "sin", rb_math_sin, 1);
     rb_define_module_function(rb_mMath, "tan", math_tan, 1);
 
     rb_define_module_function(rb_mMath, "acos", math_acos, 1);
     rb_define_module_function(rb_mMath, "asin", math_asin, 1);
-    rb_define_module_function(rb_mMath, "atan", math_atan, 1);
+    rb_define_module_function(rb_mMath, "atan", rb_math_atan, 1);
 
-    rb_define_module_function(rb_mMath, "cosh", math_cosh, 1);
-    rb_define_module_function(rb_mMath, "sinh", math_sinh, 1);
+    rb_define_module_function(rb_mMath, "cosh", rb_math_cosh, 1);
+    rb_define_module_function(rb_mMath, "sinh", rb_math_sinh, 1);
     rb_define_module_function(rb_mMath, "tanh", math_tanh, 1);
 
     rb_define_module_function(rb_mMath, "acosh", math_acosh, 1);
     rb_define_module_function(rb_mMath, "asinh", math_asinh, 1);
     rb_define_module_function(rb_mMath, "atanh", math_atanh, 1);
 
-    rb_define_module_function(rb_mMath, "exp", math_exp, 1);
-    rb_define_module_function(rb_mMath, "log", math_log, -1);
+    rb_define_module_function(rb_mMath, "exp", rb_math_exp, 1);
+    rb_define_module_function(rb_mMath, "log", rb_math_log, -1);
     rb_define_module_function(rb_mMath, "log2", math_log2, 1);
     rb_define_module_function(rb_mMath, "log10", math_log10, 1);
-    rb_define_module_function(rb_mMath, "sqrt", math_sqrt, 1);
+    rb_define_module_function(rb_mMath, "sqrt", rb_math_sqrt, 1);
     rb_define_module_function(rb_mMath, "cbrt", math_cbrt, 1);
 
     rb_define_module_function(rb_mMath, "frexp", math_frexp, 1);
     rb_define_module_function(rb_mMath, "ldexp", math_ldexp, 2);
 
-    rb_define_module_function(rb_mMath, "hypot", math_hypot, 2);
+    rb_define_module_function(rb_mMath, "hypot", rb_math_hypot, 2);
 
     rb_define_module_function(rb_mMath, "erf",  math_erf,  1);
     rb_define_module_function(rb_mMath, "erfc", math_erfc, 1);

ーー
斎藤ただし

In This Thread

Prev Next