> Hi,
> 
> I hope this is the right place for this topic as I
> have not found a more appropriate forum/list.
> 
> Two things:
> 
> * The style guide at
> 
> 
> ttp://www.opensolaris.org/os/community/on/devref_toc/d
> evref_7/#7_2_style_guide
>
> might need a minor correction. It mentions #pragma
>  ident, which according to the hg
>  migration guide is to be removed.
> 
> * I wanted to get automatic Sun cstyle conforming
> indentation and line continuation
> with emacs, so on the basis of other people's work
>  I have put together a little page
>  describing the setup:
> 
> 
> ttp://www.genunix.org/wiki/index.php/Edit_Opensolaris_
> Source_with_Emacs
> 
> Kudos to the original authors, Binu Jose Philip and
>  jmcp.
> 
> Cheers, Nils

For non-emacs users (aka The World Is Not An Editor), it might be nice
to have someone work out the set of "indent" options that most closely
approximates what the style guide wants; that (plus some warnings of
common gotchas with "indent") would take care of 95% of the work of
cleaning something up.  I personally tend to like 4 column tabs, different
breaks, etc, although I've made one or two concessions to various tools, like

int
foo(char *arg)
{
...

rather than

int foo(char *arg)
{
...

but I have no problem with cranking through "indent" or the like to transform
it to something preferred by a style guide, nor with doing myself in advance
what it can't handle.
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to