Date: Fri, 20 Jul 2001 01:04:18 -0500 From: Alfred Perlstein <bright@sneakerz.org> To: Dima Dorfman <dima@unixfreak.org> Cc: Warner Losh <imp@harmony.village.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 style.9 Message-ID: <20010720010418.H37403@sneakerz.org> In-Reply-To: <20010720060105.68FB33E35@bazooka.unixfreak.org>; from dima@unixfreak.org on Thu, Jul 19, 2001 at 11:01:05PM -0700 References: <200107200250.f6K2olo62361@harmony.village.org> <20010720060105.68FB33E35@bazooka.unixfreak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Dima Dorfman <dima@unixfreak.org> [010720 01:01] wrote: > Warner Losh <imp@harmony.village.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010720010418.H37403>