numeric.c: move declaration [ci skip]
* numeric.c (fix_lshift, fix_rshift, flo_truncate): move forward declaration to the top. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9a686593c7
commit
95813d475f
@ -105,8 +105,11 @@ round(double x)
|
|||||||
|
|
||||||
static VALUE fix_uminus(VALUE num);
|
static VALUE fix_uminus(VALUE num);
|
||||||
static VALUE fix_mul(VALUE x, VALUE y);
|
static VALUE fix_mul(VALUE x, VALUE y);
|
||||||
|
static VALUE fix_lshift(long, unsigned long);
|
||||||
|
static VALUE fix_rshift(long, unsigned long);
|
||||||
static VALUE int_pow(long x, unsigned long y);
|
static VALUE int_pow(long x, unsigned long y);
|
||||||
static VALUE int_cmp(VALUE x, VALUE y);
|
static VALUE int_cmp(VALUE x, VALUE y);
|
||||||
|
static VALUE flo_truncate(VALUE num);
|
||||||
|
|
||||||
static ID id_coerce, id_div, id_divmod;
|
static ID id_coerce, id_div, id_divmod;
|
||||||
#define id_to_i idTo_i
|
#define id_to_i idTo_i
|
||||||
@ -1805,8 +1808,6 @@ rb_int_round(VALUE num, int ndigits)
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
|
||||||
flo_truncate(VALUE num);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
@ -3753,9 +3754,6 @@ fix_xor(VALUE x, VALUE y)
|
|||||||
return rb_funcall(x, '^', 1, y);
|
return rb_funcall(x, '^', 1, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE fix_lshift(long, unsigned long);
|
|
||||||
static VALUE fix_rshift(long, unsigned long);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* fix << count -> integer
|
* fix << count -> integer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user