Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2007 12:43:20 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Hans Petter Selasky <hselasky@freebsd.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>, "Constantine A. Murenin" <cnst@freebsd.org>
Subject:   Re: PERFORCE change 126745 for review
Message-ID:  <20070924104320.GE38890@cicely12.cicely.de>
In-Reply-To: <200709232113.34718.hselasky@freebsd.org>
References:  <200709231625.l8NGPhaR097038@repoman.freebsd.org> <46F6A3C3.6010408@FreeBSD.org> <200709232113.34718.hselasky@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 23, 2007 at 09:13:33PM +0200, Hans Petter Selasky wrote:
> Hi Constantine,
> 
> Thanks for your input and I _know_ that my code is not 100% style compliant. 
> Most of the style misbehaves are probably there due to the way my "xemacs" 
> autoformatting behaves. And I love curly brackets and parenthesis, by the 
> way :-)
> 
> My plan is to clean up all the style stuff by a small C-program in the end, 
> because doing it by hand is waste of my time. Probably it will take less time 
> to write that program than the actual manual edit when we are talking about 
> doing alot of edits. It wonders me if such a tool already exists, because the 
> code is technically OK.

There is indent(1) in src, but it doesn't produce 100% style(9) clean
code either.
I usually use it as a starting point for very ugly formated code.
I'm not shure it will make things easier in this special case, maybe
just different.
But very likely you can use it to automatically fix at least a few
common points.
Enhancing indent to produce style(9) code would be a great feature...

-- 
B.Walter                http://www.bwct.de      http://www.fizon.de
bernd@bwct.de           info@bwct.de            support@fizon.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070924104320.GE38890>