netpanzer-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netPanzer-Devel] autoindent/retab sources?


From: Ivo Danihelka
Subject: [netPanzer-Devel] autoindent/retab sources?
Date: Tue, 16 Sep 2003 03:20:25 +0200

Hi,

It would be nice to autoindent sources.
There is jumble tabs and spaces now.

I tried reformat with "astyle -l -o"
http://astyle.sourceforge.net/

Sources look nicer and I didn't notice problem.
You can see 2 examples of reformated sources in attachment.

Described style:
- shift width = 4 spaces
- only spaces for indent
- don't break multiple statements on a single line
e.g.:
        succ->map_loc.x =  1; succ->map_loc.y =  0; succ->g = 1;

- break brackets from deklerations, not after statemets:
e.g.:
int Foo()
    {
        if (isBar) {
            bar();
            return 1;
         } else
            return 0;
    }

If you like this idea let me know.
I will wait for commit your work and then send big commit
with reformated all sources.

-- 
Ivo Danihelka

Attachment: Astar.cpp
Description: Text Data

Attachment: Astar.hpp
Description: Text Data


reply via email to

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