1
0
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:
Olaf Barthel
2004-08-07 09:15:33 +00:00
parent f6c5e12f63
commit 115497faec
107 changed files with 343 additions and 230 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: ctype.h,v 1.1.1.1 2004-07-26 16:32:50 obarthel Exp $
* $Id: ctype.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -63,7 +63,7 @@ extern int toupper(int c);
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
#define isascii(c) ((unsigned)(c) <= 127)

View File

@@ -1,5 +1,5 @@
/*
* $Id: dirent.h,v 1.1.1.1 2004-07-26 16:32:50 obarthel Exp $
* $Id: dirent.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: dos.h,v 1.1.1.1 2004-07-26 16:32:50 obarthel Exp $
* $Id: dos.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: fcntl.h,v 1.1.1.1 2004-07-26 16:32:51 obarthel Exp $
* $Id: fcntl.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: grp.h,v 1.1.1.1 2004-07-26 16:32:52 obarthel Exp $
* $Id: grp.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: libgen.h,v 1.1.1.1 2004-07-26 16:32:52 obarthel Exp $
* $Id: libgen.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: limits.h,v 1.1.1.1 2004-07-26 16:32:52 obarthel Exp $
* $Id: limits.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -54,7 +54,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: math.h,v 1.1.1.1 2004-07-26 16:32:53 obarthel Exp $
* $Id: math.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -81,6 +81,17 @@ extern double tanh(double x);
/****************************************************************************/
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/
extern double rint(double x);
extern float rintf(float x);
extern int isinf(double x);
extern int isnan(double x);
/****************************************************************************/
#ifdef __cplusplus
}
#endif /* __cplusplus */

View File

@@ -1,5 +1,5 @@
/*
* $Id: pwd.h,v 1.1.1.1 2004-07-26 16:32:53 obarthel Exp $
* $Id: pwd.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: signal.h,v 1.2 2004-07-28 14:14:38 obarthel Exp $
* $Id: signal.h,v 1.3 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -62,7 +62,7 @@ extern int raise(int sig);
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: stdio.h,v 1.1.1.1 2004-07-26 16:32:54 obarthel Exp $
* $Id: stdio.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -308,7 +308,7 @@ extern int __flush(FILE *stream);
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: stdlib.h,v 1.1.1.1 2004-07-26 16:32:55 obarthel Exp $
* $Id: stdlib.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -147,7 +147,7 @@ extern long atol(const char *str);
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: string.h,v 1.2 2004-07-30 09:25:16 obarthel Exp $
* $Id: string.h,v 1.3 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -89,7 +89,7 @@ extern void *memset(void *ptr, int val, size_t len);
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: strings.h,v 1.1.1.1 2004-07-26 16:32:55 obarthel Exp $
* $Id: strings.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: amigaos-va.h,v 1.1.1.1 2004-07-26 16:32:57 obarthel Exp $
* $Id: amigaos-va.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: mount.h,v 1.1.1.1 2004-07-26 16:32:58 obarthel Exp $
* $Id: mount.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: stat.h,v 1.1.1.1 2004-07-26 16:32:58 obarthel Exp $
* $Id: stat.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: time.h,v 1.1.1.1 2004-07-26 16:32:58 obarthel Exp $
* $Id: time.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: types.h,v 1.1.1.1 2004-07-26 16:32:59 obarthel Exp $
* $Id: types.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: unistd.h,v 1.3 2004-07-28 15:50:45 obarthel Exp $
* $Id: unistd.h,v 1.4 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/

View File

@@ -1,5 +1,5 @@
/*
* $Id: utime.h,v 1.1.1.1 2004-07-26 16:32:56 obarthel Exp $
* $Id: utime.h,v 1.2 2004-08-07 09:15:33 obarthel Exp $
*
* :ts=4
*
@@ -36,7 +36,7 @@
/****************************************************************************/
/* The following is not part of the ISO 'C' standard. */
/* The following is not part of the ISO 'C' (1994) standard. */
/****************************************************************************/