ext/numo/narray/math.c in numo-narray-0.9.1.2 vs ext/numo/narray/math.c in numo-narray-0.9.1.3
- old
+ new
@@ -12,11 +12,11 @@
static ID id_send;
static ID id_UPCAST;
static ID id_DISPATCH;
static ID id_extract;
-VALUE
+static VALUE
nary_type_s_upcast(VALUE type1, VALUE type2)
{
VALUE upcast_hash;
VALUE result_type;
@@ -33,11 +33,11 @@
}
return result_type;
}
-VALUE nary_math_cast2(VALUE type1, VALUE type2)
+static VALUE nary_math_cast2(VALUE type1, VALUE type2)
{
if ( RTEST(rb_class_inherited_p( type1, cNArray )) ){
return nary_type_s_upcast( type1, type2 );
}
if ( RTEST(rb_class_inherited_p( type2, cNArray )) ){
@@ -55,11 +55,11 @@
}
VALUE na_ary_composition_dtype(VALUE);
-VALUE nary_mathcast(int argc, VALUE *argv)
+static VALUE nary_mathcast(int argc, VALUE *argv)
{
VALUE type, type2;
int i;
type = na_ary_composition_dtype(argv[0]);
@@ -80,10 +80,10 @@
@overload method_missing(name,x,...)
@param [Symbol] name method name.
@param [NArray,Numeric] x input array.
@return [NArray] result.
*/
-VALUE nary_math_method_missing(int argc, VALUE *argv, VALUE mod)
+static VALUE nary_math_method_missing(int argc, VALUE *argv, VALUE mod)
{
VALUE type, ans, typemod, hash;
if (argc>1) {
type = nary_mathcast(argc-1,argv+1);