From owner-cvs-src@FreeBSD.ORG Fri Feb 11 00:32:08 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDE5016A51C; Fri, 11 Feb 2005 00:32:06 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FC7F43D39; Fri, 11 Feb 2005 00:32:06 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j1B0VOXO075438; Thu, 10 Feb 2005 17:31:24 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 10 Feb 2005 17:31:23 -0700 (MST) Message-Id: <20050210.173123.20914349.imp@bsdimp.com> To: max@love2party.net From: "M. Warner Losh" In-Reply-To: <200502110109.55898.max@love2party.net> References: <200502102331.j1ANVRQP026186@repoman.freebsd.org> <86sm44nez7.fsf@xps.des.no> <200502110109.55898.max@love2party.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: des@des.no cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/ed if_ed.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 00:32:09 -0000 In message: <200502110109.55898.max@love2party.net> Max Laier writes: : On Friday 11 February 2005 00:59, Dag-Erling Sm=F8rgrav wrote: : > Warner Losh writes: : > > Log: : > > use : > > while (complicated-expr) : > > continune; : > > in preference to : > > while (complicated-expr); : > : > As a matter of taste, I prefer /* nothing */ to continue in cases l= ike : > this. : = : That's what style.9 suggests, btw: : | for (p =3D buf; *p !=3D '\0'; ++p) : | ; /* nothing */ It also says forever loops are done with for, not while, just before. Clearly, this isn't a forever loop, nor is the example. Warner