From owner-freebsd-current Thu Jan 28 02:51:58 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA25475 for freebsd-current-outgoing; Thu, 28 Jan 1999 02:51:58 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA25452 for ; Thu, 28 Jan 1999 02:51:54 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id KAA05944; Thu, 28 Jan 1999 10:51:30 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.2/8.9.2) with ESMTP id KAA93851; Thu, 28 Jan 1999 10:34:32 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199901281034.KAA93851@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Luigi Rizzo cc: bde@zeta.org.au (Bruce Evans), current@FreeBSD.ORG, grog@lemis.com, peter.jeremy@auss2.alcatel.com.au Subject: Re: indent(1) and style(9) (was: btokup() macro in sys/malloc.h) In-reply-to: Your message of "Thu, 28 Jan 1999 08:35:33 +0100." <199901280735.IAA08539@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Jan 1999 10:34:32 +0000 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > >an example -- basically all places where, for efficiency reasons, > > >the code tries to expand in-line various block, the depth of > > >indentation pushes everything to the right end leaving only 20-30 > > >useful chars per line. > > > > See the Linux style guide (linux/Documentation/CodingStyle) for > > strong opinions about this: "if you need more than 3 levels of > > indentation, you're screwed anyway, and should fix your program". > > > > I almost agree. > > in userland, probably me too. In the kernel, i am not so sure. What's the difference ? I've heard people suggesting the opposite in the past - ``low level code is long and thin, high level code is wider''. But the kernel isn't the only place you find low level code. > luigi -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message