From owner-freebsd-current Sat Mar 14 04:44:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA04247 for freebsd-current-outgoing; Sat, 14 Mar 1998 04:44:10 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA04241 for ; Sat, 14 Mar 1998 04:44:08 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [194.198.43.36]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id MAA06124; Sat, 14 Mar 1998 12:44:07 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.6/8.8.6) id NAA13592; Sat, 14 Mar 1998 13:44:03 +0100 (MET) Message-ID: <19980314134403.44728@follo.net> Date: Sat, 14 Mar 1998 13:44:03 +0100 From: Eivind Eklund To: shimon@simon-shapiro.org Cc: freebsd-current@FreeBSD.ORG Subject: Re: A question about sys/sys/queue.h References: <19980313121330.54903@follo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: ; from Simon Shapiro on Fri, Mar 13, 1998 at 09:54:59AM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Mar 13, 1998 at 09:54:59AM -0800, Simon Shapiro wrote: > > On 13-Mar-98 Eivind Eklund wrote: > ... > > > For any onlookerss: You can't get the correct binding with if () > > tricks, BTW. Stick with the good old "do { ... } while(0)" > > What you are describing is probably a compiler (or maybe even > language) deficiency. ``do { ... } while (0)'' should be identical to > ``{ ... }'' as they both do logically, the same thing. Again, for onlookers: It's a language 'feature'. Off the top of my head, I can't think of any way of parsing this that would be cleaner. (Any follow-ups to chat, please) Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message