See http://netrek.org/repos/netrek-server/Vanilla/STYLE for the latest version applicable to the server ... the text below is only occasionally maintained.
Coding style for patch acceptance on Vanilla project.
- for minor changes, do not change indentation, keep it consistent with the indentation in the file you are working on,
- for major changes to a file, reindent the file according to 4 below,
- for new files, indent the file according to 4 below,
- indent by either two or four spaces, or use tabs, but be consistent within a file, preferred is four spaces, no tabs.
static int foo(int a)
{
if (a) {
func(abc, xyz);
def;
} else {
ghi;
jkl;
}
}