From owner-freebsd-arch Thu Apr 27 11:23: 2 2000 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id BAE7237B7C2 for ; Thu, 27 Apr 2000 11:22:55 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id UAA02269 for ; Thu, 27 Apr 2000 20:22:50 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id UAA01357 for freebsd-arch@freebsd.org; Thu, 27 Apr 2000 20:22:49 +0200 (CEST) Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 186B637BB40; Thu, 27 Apr 2000 11:22:07 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (root@c02-166.006.popsite.net [216.126.135.166]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id LAA54064; Thu, 27 Apr 2000 11:21:41 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id LAA35028; Thu, 27 Apr 2000 11:21:19 -0700 (PDT) (envelope-from obrien) Date: Thu, 27 Apr 2000 11:21:17 -0700 From: "David O'Brien" To: Archie Cobbs Cc: Brian Fundakowski Feldman , arch@freebsd.org Subject: Re: limits.h and styles; ANSIfication Message-ID: <20000427112117.A35003@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <20000424125408.A13576@dragon.nuxi.com> <200004271758.KAA66218@bubba.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200004271758.KAA66218@bubba.whistle.com>; from archie@whistle.com on Thu, Apr 27, 2000 at 10:58:01AM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Apr 27, 2000 at 10:58:01AM -0700, Archie Cobbs wrote: > > 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. Yes. BUT it is a good habit to be in to protect macro expansion. I've seen too many times where the macho programmer "knew" where ()'s were needed and where they weren't. > they're also unnecessary, inductively assuming the #definition of And we all know what "assume" stands for. -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message