Indentation

Divan Burger divan.burger at gmail.com
Thu Jan 10 08:23:15 CST 2008


Hi,

What is the preferred number of spaces of indentation? In
comdlg32/colordlg.c it is either one or three spaces and there are a
few places where there is no indentation and where things are randomly
indented or switches between amounts of indentation.

What is the policy on when to change indentation and other things like
turning something like this:

    if (condition)
    {
        ...some code...
        return 0;
    }
    return 1;

into

    if (condition)
        return 1;

    ...some code...
    return 0;

The page on style
(http://www.winehq.org/site/docs/winedev-guide/style-notes) only
contains very little on coding style.

Another question, would it be OK to use smooth gradients in the colour
dialog? It could be slow on older computer accessing each pixel
individually although the code is only run on startup.

Divan



More information about the wine-devel mailing list