From owner-freebsd-ports@FreeBSD.ORG Wed Jan 26 05:55:54 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 304CF16A4CE for ; Wed, 26 Jan 2005 05:55:54 +0000 (GMT) Received: from priv-edtnes40.telusplanet.net (outbound05.telus.net [199.185.220.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8BE143D5A for ; Wed, 26 Jan 2005 05:55:53 +0000 (GMT) (envelope-from cpressey@catseye.mine.nu) Received: from catseye.biscuit.boo ([154.20.76.195]) by priv-edtnes40.telusplanet.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with SMTP <20050126055553.NPWY15225.priv-edtnes40.telusplanet.net@catseye.biscuit.boo> for ; Tue, 25 Jan 2005 22:55:53 -0700 Date: Tue, 25 Jan 2005 21:56:01 -0800 From: Chris Pressey To: freebsd-ports@freebsd.org Message-Id: <20050125215601.0f324ba0.cpressey@catseye.mine.nu> In-Reply-To: <41F6F431.6060005@tenebras.com> References: <41F6F431.6060005@tenebras.com> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 1.0.0rc (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 05:55:54 -0000 On Tue, 25 Jan 2005 17:36:49 -0800 Michael Sierchio wrote: > [...] > - while ((k > i) && (cmds.s[k - 1] == ' ') || (cmds.s[k - 1] == '\t')) > + while ((k > i) && ((cmds.s[k - 1] == ' ') || (cmds.s[k - 1] == '\t'))) > > [...] There is no semantic difference between the two, [...] Oh? That's news to me. GCC must be broken, then. Observe: int main() { int i, j, k; for (i = 0; i <= 1; i++) { for (j = 0; j <= 1; j++) { for (k = 0; k <= 1; k++) { printf("i == %d, j == %d, k == %d " "i && j || k == %d " "i && (j || k) == %d\n", i, j, k, (i && j || k), (i && (j || k)) ); } } } } -------[ output ]------ i == 0, j == 0, k == 0 i && j || k == 0 i && (j || k) == 0 i == 0, j == 0, k == 1 i && j || k == 1 i && (j || k) == 0 i == 0, j == 1, k == 0 i && j || k == 0 i && (j || k) == 0 i == 0, j == 1, k == 1 i && j || k == 1 i && (j || k) == 0 i == 1, j == 0, k == 0 i && j || k == 0 i && (j || k) == 0 i == 1, j == 0, k == 1 i && j || k == 1 i && (j || k) == 1 i == 1, j == 1, k == 0 i && j || k == 1 i && (j || k) == 1 i == 1, j == 1, k == 1 i && j || k == 1 i && (j || k) == 1 -Chris