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.

  1. for minor changes, do not change indentation, keep it consistent with the indentation in the file you are working on,
  2. for major changes to a file, reindent the file according to 4 below,
  3. for new files, indent the file according to 4 below,
  4. 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;
    }
}

CodingStyle (last edited 2007-01-29 22:47:31 by JamesCameron)