Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2002:
[Freeciv-Dev] Re: coding standard patch
Home

[Freeciv-Dev] Re: coding standard patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: coding standard patch
From: Reinier Post <rp@xxxxxxxxxx>
Date: Fri, 20 Sep 2002 08:18:09 +0200

On Wed, Sep 18, 2002 at 04:11:09PM -0500, Jason Short wrote:

[...]

> To carry things a little farther, emacs and indent will automatically 
> indent using tabs (or automatically strip tabs).  But under the system 
> of indentation I describe above, not *all* spaces should be replaced by 
> tabs.  Consider:
> 
> int foo(void)
> {
> \tint x;
> 
> \tcall_some_function(x, y
> \t                   z);
> }

[...]
 
> Does anyone know how to get the first behavior instead of the second (in 
> emacs or indent)?

Being able to run indent without upsetting the style guide
is a very good thing, I wouldn't bother and simply prohibit that style.

  \tcall_some_function(
  \t\tx, y,
  \t\tz);

is good enough; personally I prefer

  \tcall_some_function(
  \t\tx, y,
  \t\tz
  \t);

> jason

-- 
Reinier


[Prev in Thread] Current Thread [Next in Thread]