reindenting

Simo Sorce ssorce at redhat.com
Wed Oct 28 17:54:02 EDT 2009


On Wed, 2009-10-28 at 17:31 -0400, Tom Yu wrote:
> Simo Sorce <ssorce at redhat.com> writes:
> 
> > On Wed, 2009-10-28 at 16:28 -0400, Tom Yu wrote:
> >> There are
> >> customizations that Emacs users should use to set up their editor to
> >> conform to our C coding style.
> >
> > Do you have a description of the indenting rules as a set of options to
> > 'indent' (the program) for those that do not use emacs ?
> > Alternatively a style guide where the rules are stated ?
> > (sorry for the noise if this was already been published)
> 
> Please look at
> 
>     http://k5wiki.kerberos.org/wiki/Coding_style
> 
> and its child pages (linked near the top of the page).

Great, thanks!

> The indent.pro settings are only a rough guideline; running GNU indent
> on the tree results in a great deal of carnage: much worse than doing
> the Emacs reindent.

Yeah, I was in no way trying to suggest to use indent, I was just
interested in knowing what style should be used "from now on".

>   There are suggested vim/gvim settings as well.
> Feedback on these style guidelines is welcome.

Style looks great, finally my eyes will not cross when I read the code
once the big reindent goes through ;-)

Seriously,
thanks for doing this!

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the krbdev mailing list