summaryrefslogtreecommitdiffstats
path: root/missing/isinf.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-05 05:29:48 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-05 05:29:48 +0000
commit56cfd5f830f2594f04823745429bc5365f350015 (patch)
tree46192ff2077a4de9754729c7bbae54dde51bb6f4 /missing/isinf.c
parent51ecb3ce20aa4d30815071dccfbc2785962fde97 (diff)
downloadruby-56cfd5f830f2594f04823745429bc5365f350015.tar.gz
ruby-56cfd5f830f2594f04823745429bc5365f350015.tar.xz
ruby-56cfd5f830f2594f04823745429bc5365f350015.zip
ANSI styled
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/isinf.c')
-rw-r--r--missing/isinf.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/missing/isinf.c b/missing/isinf.c
index e44ef6c3c..27271bdec 100644
--- a/missing/isinf.c
+++ b/missing/isinf.c
@@ -6,8 +6,7 @@
#include <nan.h>
int
-isinf(n)
- double n;
+isinf(double n)
{
if (IsNANorINF(n) && IsINF(n)) {
return 1;
@@ -29,8 +28,7 @@ isinf(n)
#endif
int
-isinf(n)
- double n;
+isinf(double n)
{
return (!finite(n) && !isnan(n));
}
@@ -43,13 +41,12 @@ isinf(n)
# include <strings.h>
#endif
-static double zero() { return 0.0; }
-static double one() { return 1.0; }
-static double inf() { return one() / zero(); }
+static double zero(void) { return 0.0; }
+static double one (void) { return 1.0; }
+static double inf (void) { return one() / zero(); }
int
-isinf(n)
- double n;
+isinf(double n)
{
static double pinf = 0.0;
static double ninf = 0.0;