From owner-cvs-all Thu Jul 19 23: 1:14 2001 Delivered-To: cvs-all@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id C869637B403; Thu, 19 Jul 2001 23:01:05 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id 68FB33E35; Thu, 19 Jul 2001 23:01:05 -0700 (PDT) To: Warner Losh Cc: Alfred Perlstein , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 style.9 In-Reply-To: <200107200250.f6K2olo62361@harmony.village.org>; from imp@harmony.village.org on "Thu, 19 Jul 2001 20:50:47 -0600" Date: Thu, 19 Jul 2001 23:01:05 -0700 From: Dima Dorfman Message-Id: <20010720060105.68FB33E35@bazooka.unixfreak.org> 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 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: 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; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message