From 9f553490fb222c0fd4337e3479683776db98fd05 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 18 Feb 2007 19:22:23 +0000 Subject: [PATCH] Remove useless parens in #if "defined" operator. --- src/libpspp/ChangeLog | 6 ++++++ src/libpspp/alloc.h | 2 +- src/libpspp/misc.h | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/libpspp/ChangeLog b/src/libpspp/ChangeLog index 2e5ac512c3..ff91701b88 100644 --- a/src/libpspp/ChangeLog +++ b/src/libpspp/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 18 11:21:41 2007 Ben Pfaff + + * alloc.h: Remove useless parentheses in #if "defined" operator. + + * misc.h: Ditto. + Tue Feb 6 20:00:13 2007 Ben Pfaff * misc.h [!HAVE_ISINF] (isinf): Define only if isinf is not diff --git a/src/libpspp/alloc.h b/src/libpspp/alloc.h index 20ffdc3a83..79a6a97e6b 100644 --- a/src/libpspp/alloc.h +++ b/src/libpspp/alloc.h @@ -27,7 +27,7 @@ void *nmalloc (size_t n, size_t s); /* alloca() wrapper functions. */ -#if defined (HAVE_ALLOCA) || defined (C_ALLOCA) +#if defined HAVE_ALLOCA || defined C_ALLOCA #ifdef HAVE_ALLOCA_H #include #endif diff --git a/src/libpspp/misc.h b/src/libpspp/misc.h index 39aa535ec3..fbd11eec3c 100644 --- a/src/libpspp/misc.h +++ b/src/libpspp/misc.h @@ -26,17 +26,17 @@ /* HUGE_VAL is traditionally defined as positive infinity, or alternatively, DBL_MAX. */ -#if !HAVE_ISINF && !defined (isinf) +#if !HAVE_ISINF && !defined isinf #define isinf(X) (fabs (X) == HUGE_VAL) #endif /* A Not a Number is not equal to itself. */ -#if !HAVE_ISNAN && !defined (isnan) +#if !HAVE_ISNAN && !defined isnan #define isnan(X) ((X) != (X)) #endif /* Finite numbers are not infinities or NaNs. */ -#if !HAVE_FINITE && !defined (finite) +#if !HAVE_FINITE && !defined finite #define finite(X) (!isinf (X) && !isnan (X)) #elif HAVE_IEEEFP_H #include /* Declares finite() under Solaris. */ -- 2.30.2