Mercurial > gnulib
changeset 20419:16c7ce5f651f
.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 10 Oct 1996 04:14:40 +0000 |
parents | 46ad44243d44 |
children | 48ff2f62a145 |
files | lib/safe-read.c lib/strtod.c lib/xstrtod.h |
diffstat | 3 files changed, 19 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/safe-read.c Thu Oct 10 03:14:48 1996 +0000 +++ b/lib/safe-read.c Thu Oct 10 04:14:40 1996 +0000 @@ -16,13 +16,13 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifdef HAVE_CONFIG_H +#if HAVE_CONFIG_H # include <config.h> #endif #include <sys/types.h> -#ifdef HAVE_UNISTD_H +#if HAVE_UNISTD_H # include <unistd.h> #endif
--- a/lib/strtod.c Thu Oct 10 03:14:48 1996 +0000 +++ b/lib/strtod.c Thu Oct 10 04:14:40 1996 +0000 @@ -14,8 +14,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifdef HAVE_CONFIG_H -#include <config.h> +#if HAVE_CONFIG_H +# include <config.h> #endif #include <errno.h> @@ -26,21 +26,21 @@ #include <ctype.h> #include <math.h> -#ifdef HAVE_FLOAT_H -#include <float.h> +#if HAVE_FLOAT_H +# include <float.h> #else -#define DBL_MAX 1.7976931348623159e+308 -#define DBL_MIN 2.2250738585072010e-308 +# define DBL_MAX 1.7976931348623159e+308 +# define DBL_MIN 2.2250738585072010e-308 #endif #if STDC_HEADERS -#include <stdlib.h> -#include <string.h> +# include <stdlib.h> +# include <string.h> #else -#define NULL 0 -#ifndef HUGE_VAL -#define HUGE_VAL HUGE -#endif +# define NULL 0 +# ifndef HUGE_VAL +# define HUGE_VAL HUGE +# endif #endif /* Convert NPTR to a double. If ENDPTR is not NULL, a pointer to the
--- a/lib/xstrtod.h Thu Oct 10 03:14:48 1996 +0000 +++ b/lib/xstrtod.h Thu Oct 10 04:14:40 1996 +0000 @@ -3,13 +3,13 @@ # ifndef __P # if defined (__GNUC__) || (defined (__STDC__) && __STDC__) -# define __P(args) args +# define __P(Args) Args # else -# define __P(args) () -# endif /* GCC. */ -# endif /* Not __P. */ +# define __P(Args) () +# endif +# endif int xstrtod __P ((const char *str, const char **ptr, double *result)); -#endif /* XSTRTOD_H */ +#endif /* not XSTRTOD_H */