From owner-freebsd-ports@FreeBSD.ORG Wed Jan 26 11:13:43 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C29A716A4CE; Wed, 26 Jan 2005 11:13:43 +0000 (GMT) Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.e-technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DF0C43D41; Wed, 26 Jan 2005 11:13:41 +0000 (GMT) (envelope-from matthias.andree@gmx.de) Received: from localhost (localhost [127.0.0.1])8761144235; Wed, 26 Jan 2005 12:13:40 +0100 (CET) Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1]) by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27478-01; Wed, 26 Jan 2005 12:13:39 +0100 (CET) Received: from m2a2.dyndns.org (p54854E9E.dip.t-dialin.net [84.133.78.158]) 9B57944234; Wed, 26 Jan 2005 12:13:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id 9D5E9774F6; Wed, 26 Jan 2005 12:13:38 +0100 (CET) Received: from merlin.emma.line.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18062-03; Wed, 26 Jan 2005 12:13:37 +0100 (CET) Received: by merlin.emma.line.org (Postfix, from userid 500) id C38DB77FCC; Wed, 26 Jan 2005 12:13:37 +0100 (CET) From: Matthias Andree To: Michael Sierchio In-Reply-To: <20050126104355.GA3837@falcon.midgard.homeip.net> (Erik Trulsson's message of "Wed, 26 Jan 2005 11:43:56 +0100") References: <41F6F431.6060005@tenebras.com> <1106704507.16118.14.camel@shumai.marcuscom.com> <41F72C02.7060901@camber-thrust.net> <20050126104355.GA3837@falcon.midgard.homeip.net> Date: Wed, 26 Jan 2005 12:13:37 +0100 Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at dt.e-technik.uni-dortmund.de cc: ports@freebsd.org cc: Michael Sierchio cc: lioux@freebsd.org Subject: Re: FreeBSD Port: qmail-1.03_3 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 11:13:43 -0000 Erik Trulsson writes: > On Tue, Jan 25, 2005 at 09:34:58PM -0800, Michael Sierchio wrote: >> ( 1 && 0 || 1 ) will ALWAYS evaluate to 1 on any ANSI C compiler. > > No, it will evaluate to 0. It will evaluate to 1, as you're correctly stating... > && has higher precedence than ||. > > (x && y || z) is equivalent to ((x && y) || z) ...here. 1 && 0 || 1 == 0 || 1 == 1 (this only holds as the numbers are side-effect free, if x and y were function calls or macros with side effects, this simplification would not take the side effects into account) > which is different from (x && (y || z)). Exactly. -- Matthias Andree