mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Ditched __is_infinity() and __is_not_a_number(), brought them back
as isinf() and isnan(). - Updated code and header files to state exactly which ISO 'C' version is meant by the "The following is not part of the ISO 'C' standard." warning. - Integrated rint() and rintf(). git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14699 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_vfprintf.c,v 1.1.1.1 2004-07-26 16:31:46 obarthel Exp $
|
||||
* $Id: stdio_vfprintf.c,v 1.2 2004-08-07 09:15:32 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -645,7 +645,7 @@ vfprintf(FILE * stream,const char * format, va_list arg)
|
||||
else
|
||||
v = va_arg(arg, double);
|
||||
|
||||
if(__is_infinity(fabs(v)))
|
||||
if(isinf(v) != 0)
|
||||
{
|
||||
SHOWMSG("infinity");
|
||||
|
||||
@ -657,7 +657,7 @@ vfprintf(FILE * stream,const char * format, va_list arg)
|
||||
|
||||
fill_character = ' ';
|
||||
}
|
||||
else if (__is_not_a_number(v))
|
||||
else if (isnan(v))
|
||||
{
|
||||
SHOWMSG("not a number");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user