From owner-freebsd-current Thu Jan 28 00:36:18 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA08427 for freebsd-current-outgoing; Thu, 28 Jan 1999 00:36:18 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from shell.futuresouth.com (shell.futuresouth.com [198.78.58.28]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA08422 for ; Thu, 28 Jan 1999 00:36:16 -0800 (PST) (envelope-from fullermd@futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.9.1a/8.9.1) id CAA26619; Thu, 28 Jan 1999 02:35:56 -0600 (CST) Message-ID: <19990128023555.B16540@futuresouth.com> Date: Thu, 28 Jan 1999 02:35:55 -0600 From: "Matthew D. Fuller" To: Greg Lehey Cc: current@FreeBSD.ORG Subject: Re: indent(1) and style(9) (was: btokup() macro in sys/malloc.h) References: <199901280316.OAA26849@godzilla.zeta.org.au> <19990128180537.B8473@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19990128180537.B8473@freebie.lemis.com>; from Greg Lehey on Thu, Jan 28, 1999 at 06:05:37PM +1030 X-OS: FreeBSD Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jan 28, 1999 at 06:05:37PM +1030, a little birdie told me that Greg Lehey remarked > On Thursday, 28 January 1999 at 14:16:25 +1100, Bruce Evans wrote: > >> It would be nice if style(9) documented the options to give indent(1) > >> to match the `approved' layout convections. (This would reduce the > >> effort involved in importing large chunks of code). > > > > This is impossible, since indent(1) is buggy and out of date with both > > KNF and C. > > Well, you can do a certain amount. In fact, I use GNU indent and > achieve a reasonable approximation. It would be nice to import it, > but it doesn't comply with style(9) :-) indent(1) is EVIL! :) I just recently (~month.5) had to completely reformat a mid-sized program (~70k lines), and I had to rereformat the whole thing after indent got done with it. It couldn't even handle: } else /* comment */ { It would extend the comment over the ENTIRE following code block until it hit another comment to end it. Sorry, I still get twitchy when the word 'indent' is said... --- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | Matthew Fuller http://www.over-yonder.net/~fullermd | * fullermd@futuresouth.com fullermd@over-yonder.net * | UNIX Systems Administrator Specializing in FreeBSD | * FutureSouth Communications ISPHelp ISP Consulting * | "The only reason I'm burning my candle at both ends, | * is because I haven't figured out how to light the * | middle yet" | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message