From owner-cvs-all Thu Jul 19 23: 4:35 2001 Delivered-To: cvs-all@freebsd.org Received: from sneakerz.org (sneakerz.org [216.33.66.254]) by hub.freebsd.org (Postfix) with ESMTP id 12AF737B403; Thu, 19 Jul 2001 23:04:30 -0700 (PDT) (envelope-from bright@sneakerz.org) Received: by sneakerz.org (Postfix, from userid 1092) id D09725D020; Fri, 20 Jul 2001 01:04:18 -0500 (CDT) Date: Fri, 20 Jul 2001 01:04:18 -0500 From: Alfred Perlstein To: Dima Dorfman Cc: Warner Losh , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 style.9 Message-ID: <20010720010418.H37403@sneakerz.org> References: <200107200250.f6K2olo62361@harmony.village.org> <20010720060105.68FB33E35@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010720060105.68FB33E35@bazooka.unixfreak.org>; from dima@unixfreak.org on Thu, Jul 19, 2001 at 11:01:05PM -0700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Dima Dorfman [010720 01:01] wrote: > Warner Losh writes: > > Or are you asking about is it > > > > if (foo && > > bar) > > vs > > if (foo > > && bar) > > > > in which case, you are correct. I don't see that documented. Most of > > the code uses the former, and bde seems to review my code that way. > > IIRC bde said the former is `BSD' style, and the latter is `GNU' > style. Anyway, how about this: Sure looks good, thanks for taking the time to add it. > > Index: style.9 > =================================================================== > RCS file: /stl/src/FreeBSD/src/share/man/man9/style.9,v > retrieving revision 1.55 > diff -u -r1.55 style.9 > --- style.9 2001/07/14 19:41:16 1.55 > +++ style.9 2001/07/20 06:00:16 > @@ -339,8 +339,11 @@ > .Pp > Indentation is an 8 character tab. > Second level indents are four spaces. > +If you have to wrap a long statement, put the operator at the end of the > +line. > .Bd -literal > - while (cnt < 20) > + while (cnt < 20 && this_variable_name_is_too_long_for_its_own_good && > + ep != NULL) > z = a + really + long + statement + that + needs + > two lines + gets + indented + four + spaces + > on + the + second + and + subsequent + lines; -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message