From: Bruno Haible Date: Sun, 19 Jun 2011 19:19:27 +0000 (+0200) Subject: isinf: Coding style. X-Git-Tag: v0.1~2227 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=414111a8d8020459f65506d4c229d4071ad9d51a;p=gnulib.git isinf: Coding style. * lib/isinf.c: Use GNU coding style. --- diff --git a/ChangeLog b/ChangeLog index 31c07f0bc..b0bdd21d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-06-19 Bruno Haible + isinf: Coding style. + * lib/isinf.c: Use GNU coding style. + +2011-06-19 Bruno Haible + linkat test: Avoid test failure on AIX 7.1. * tests/test-linkat.c (main): Allow EINVAL as alternate error value. * tests/test-link.h (test_link): Likewise. diff --git a/lib/isinf.c b/lib/isinf.c index cba9edee8..7ccca7904 100644 --- a/lib/isinf.c +++ b/lib/isinf.c @@ -21,17 +21,20 @@ #include -int gl_isinff (float x) +int +gl_isinff (float x) { return x < -FLT_MAX || x > FLT_MAX; } -int gl_isinfd (double x) +int +gl_isinfd (double x) { return x < -DBL_MAX || x > DBL_MAX; } -int gl_isinfl (long double x) +int +gl_isinfl (long double x) { return x < -LDBL_MAX || x > LDBL_MAX; }