[Freeciv-Dev] K&R style (was Re: [PATCH] slight optimisation ...)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> >Other people (like me) like && at the end better, and it's more common that
> >way in the code.
>
> I like Gautes' way; this is indent -kr2 -bbo, which puts it on the wrong
> side of the rules though.
For the record the K&R style is at the beginning (which I prefer, too).
It's not explicity laid out, but an example is on p130 of "The C
Programming Language". But as Trent pointed out, it's pretty evenly split
and just a matter of style.
WRT braces around single-line statements, the K&R style relies on
indentation instead of braces. I don't prefer this; again, it's a matter
of style. *shrug* An example can be found on p134 of the same book (and in
other places, but p134 was the first example I found after checking the
logical operator bit :)).
-jdm
Department of Computer Science, Duke University, Durham, NC 27708-0129
Email: justin@xxxxxxxxxxx
- [Freeciv-Dev] Re: [PATCH] slight optimisation at client/packhand.c, (continued)
Message not available
- [Freeciv-Dev] Re: [PATCH] slight optimisation at client/packhand.c, Ross W. Wetmore, 2001/08/16
- [Freeciv-Dev] K&R style (was Re: [PATCH] slight optimisation ...),
Justin Moore <=
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Kevin Brown, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Raimar Falke, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Trent Piepho, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Kevin Brown, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Trent Piepho, 2001/08/17
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Raimar Falke, 2001/08/19
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Kevin Brown, 2001/08/19
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Trent Piepho, 2001/08/19
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Kevin Brown, 2001/08/20
- [Freeciv-Dev] Re: K&R style (was Re: [PATCH] slight optimisation ...), Raimar Falke, 2001/08/20
|
|