From owner-freebsd-standards Sun Feb 9 18: 3: 2 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FA9D37B401 for ; Sun, 9 Feb 2003 18:03:01 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id B47F143F93 for ; Sun, 9 Feb 2003 18:03:00 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h1A22xoH004139; Sun, 9 Feb 2003 18:02:59 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h1A22x7Y004138; Sun, 9 Feb 2003 18:02:59 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sun, 9 Feb 2003 18:02:59 -0800 From: David Schultz To: Dag-Erling Smorgrav Cc: Lukas Ertl , standards@FreeBSD.ORG Subject: Re: C99 floating point macros Message-ID: <20030210020259.GA4103@HAL9000.homeunix.com> Mail-Followup-To: Dag-Erling Smorgrav , Lukas Ertl , standards@FreeBSD.ORG References: <20030207194848.N353@leelou.in.tern> <20030208112619.GA15718@HAL9000.homeunix.com> <20030208130529.C355@leelou.in.tern> <20030209003350.GA20683@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Dag-Erling Smorgrav : > David Schultz writes: > > Hmm...why not just use some macros, like this? > > Macros behave strangely when invoked with arguments which have side > effects. Doh! I should have seen that. I'll wrap them in a do...while(0) with a local variable. Thanks for the catch! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message