Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2000 10:58:01 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        obrien@freebsd.org
Cc:        green@freebsd.org (Brian Fundakowski Feldman), arch@freebsd.org
Subject:   Re: limits.h and styles; ANSIfication
Message-ID:  <200004271758.KAA66218@bubba.whistle.com>
In-Reply-To: <20000424125408.A13576@dragon.nuxi.com> from "David O'Brien" at "Apr 24, 2000 12:54:09 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
David O'Brien writes:
> > 	http://people.FreeBSD.org/~green/limits.patch
> 
> Why are you removing the ()'s from the macros?  They are there to protect
> the expansion and should stay.

You don't need paretheses when C cannot possibly parse it any
other way.. eg "0xffff" is always the same as "(0xffff)" in C.

It seems to me the paretheses were there previously to protect
the "-1" part.

As for

  #define QUAD_MIN        (LONG_MIN)

they're also unnecessary, inductively assuming the #definition of
LONG_MIN is itself suitably protected.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004271758.KAA66218>