11 Jun
2019
11 Jun
'19
1:49 p.m.
On Tue, Jun 11, 2019 at 01:37:42PM +0000, Kenth Eriksson wrote:
Is there a code style guide to be used when submitting patches to bird? An emacs file, clang-format or similar would be useful.
Hi Well, historically different parts of BIRD used different coding styles, now we try to converge on 2 columns per indentation, Allman style (opening brace on new line). Canonical way to indent to X-th column is by X/8 tabs and X%8 spaces. For EMACS, it is: (setq-default c-default-style "bsd") (setq-default c-basic-offset 2) -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."