[cvs] bogofilter/src lexer.c,1.54,1.55

Matthias Andree matthias.andree at gmx.de
Mon Sep 1 19:26:54 CEST 2003


David Relson <relson at osagesoftware.com> writes:

> /*
>  * The following sets edit modes for GNU EMACS
>  * Local Variables:
>  * mode:c
>  * End:
>  */

Hum, we'd use indent because I'm basically hacking away with vim most of
the time.

> It seems to work well.  Where we're inconsistent is with compound
> statements, e.g.
>
> for (...){
> }
>
> or
>
> for (...) {
> }

The second is my preferred.

> For conditionals and loops I like ") {", i.e. paren, space, brace.  For
> functions, I like the { at the start of its own line.  I usually format
> switches like functions.

OK. Where we're also inconsistent is if/else.

I like   } else {   where you add a line break.

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95




More information about the bogofilter-dev mailing list