2 CODING STANDARD FOR GERBV
9 To hack in this code you need to set emacs (or whatever you use) to
10 4 indentation steps and {} at the right places (see code).
14 (defun my-c-mode-hook ()
16 (setq c-basic-offset 4))
18 (add-hook 'c-mode-hook 'my-c-mode-hook)
31 If there is only one statement you don't need the braces.
48 Switch should always have a default case.
53 Minor changes (cosmetic, minor (up to 4,5 lines) not reported bugs)
54 doesn't need a ChangeLog entry. A ChangeLog entry is needed when a
55 reported bug is fixed (with bug report number) or when a feature is
56 added. I (spe) use ChangeLog when writing release notes.
61 The prototype should have return type on the same line as function name:
62 int some_function(int par1, int par2);
64 The function implementation should have return type on a separate line
65 (including eventual pointer star). The function implementation should
66 have the function name in c-comments
69 some_function(int par1, int par2)
74 In a function there should be maximum one empty line in a row.
75 Between functions there should be two empty lines.