Mercurial > hg > octave-lojdl > gnulib-hg
changeset 15299:a2869570a656
isinf: Coding style.
* lib/isinf.c: Use GNU coding style.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 19 Jun 2011 21:19:27 +0200 |
parents | 9f6aa6c9dd0e |
children | 64ce149fbae3 |
files | ChangeLog lib/isinf.c |
diffstat | 2 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-06-19 Bruno Haible <bruno@clisp.org> + + isinf: Coding style. + * lib/isinf.c: Use GNU coding style. + 2011-06-19 Bruno Haible <bruno@clisp.org> linkat test: Avoid test failure on AIX 7.1.
--- a/lib/isinf.c +++ b/lib/isinf.c @@ -21,17 +21,20 @@ #include <float.h> -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; }