CodingStandard
From GnuCash
Gnucash is fairly relaxed about coding style, but we will periodically run a reformatter called astyle over the code to clean it up. To reduce the need for this (it messes up VCS history, particularly "blame"), please format your code as follows.
In general, follow the GNU format except use four spaces instead of two for the indents. To summarize,