From owner-freebsd-hackers Fri Jun 30 2:49:38 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id 410C037C415 for ; Fri, 30 Jun 2000 02:49:34 -0700 (PDT) (envelope-from nbm@sunesi.net) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 137xQK-000KYa-00; Fri, 30 Jun 2000 11:49:24 +0200 Date: Fri, 30 Jun 2000 11:49:24 +0200 From: Neil Blakey-Milner To: Martin Horcicka Cc: freebsd-hackers@freebsd.org Subject: Re: style(9) Message-ID: <20000630114924.A78968@mithrandr.moria.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from horcicka@dzungle.ms.mff.cuni.cz on Fri, Jun 30, 2000 at 11:38:36AM +0200 Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri 2000-06-30 (11:38), Martin Horcicka wrote: > 2. Citation: > ============ > Indentation is an 8 character tab. Second level indents are four spaces. > > while (cnt < 20) > z = a + really + long + statement + that + needs + > two lines + gets + indented + four + spaces + > on + the + second + and + subsequent + lines. > a. What does it mean `second level indents'? Is it the indentation of > expressions that cannot fit to one line (as in the example above) or > is it any indentation except of the first tab? It's continuation lines, as the example states. All new statements occur on tab boundaries, whereas continuation lines are tabs to the previous tab boundary, plus 4 spaces. while (cnt < 20) if (foo == bar) baz(); > b. Aren't 8 characters too many? No. Anyway, you can set your tab size to whatever you want. So long as it is a _tab_, and not 2 or 4 or 8 spaces. If you're heading into the margin constantly, you should simplify your code, or break it up into (preferably reusable) functions that perform one task. Neil -- Neil Blakey-Milner Sunesi Clinical Systems nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message