From: Ben Pfaff Date: Sun, 18 Feb 2007 19:22:23 +0000 (+0000) Subject: Remove useless parens in #if "defined" operator. X-Git-Tag: v0.6.0~541 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f553490fb222c0fd4337e3479683776db98fd05;p=pspp-builds.git Remove useless parens in #if "defined" operator. --- diff --git a/src/libpspp/ChangeLog b/src/libpspp/ChangeLog index 2e5ac512..ff91701b 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 20ffdc3a..79a6a97e 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 39aa535e..fbd11eec 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. */