From 9591086aa3e523067fa809f4551de3340bcc16c2 Mon Sep 17 00:00:00 2001 From: ocean Date: Wed, 1 Mar 2006 10:06:03 +0000 Subject: * dir.c: supress warning "/* within comment" * bignum.c, io.c, math.c, pack.c, time.c: ANSI styled. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- math.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'math.c') diff --git a/math.c b/math.c index 9235cb130..47f8dd571 100644 --- a/math.c +++ b/math.c @@ -146,8 +146,7 @@ math_atan(VALUE obj, VALUE x) #ifndef HAVE_COSH double -cosh(x) - double x; +cosh(double x) { return (exp(x) + exp(-x)) / 2; } @@ -170,8 +169,7 @@ math_cosh(VALUE obj, VALUE x) #ifndef HAVE_SINH double -sinh(x) - double x; +sinh(double x) { return (exp(x) - exp(-x)) / 2; } @@ -194,8 +192,7 @@ math_sinh(VALUE obj, VALUE x) #ifndef HAVE_TANH double -tanh(x) - double x; +tanh(double x) { return sinh(x) / cosh(x); } -- cgit